Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 51.91 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.275, allocations: 49.42 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01871/0.2938, allocations: 15.18 MB / 415.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01082/0.3046, allocations: 5.076 MB / 420.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003144/0.3078, allocations: 103.6 kB / 420.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003314/0.3111, allocations: 1.067 MB / 421.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004821/0.3161, allocations: 1.272 MB / 422.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002653/0.3187, allocations: 0.8805 MB / 423.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00556/0.3243, allocations: 3.625 MB / 427.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004657/0.329, allocations: 3.314 MB / 430.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003095/0.3321, allocations: 1.713 MB / 432.5 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004018/0.3362, allocations: 2.059 MB / 434.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00118/0.3374, allocations: 480 kB / 435 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001996/0.3394, allocations: 0.6833 MB / 435.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001226/0.3406, allocations: 1.141 MB / 436.8 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002882/0.3435, allocations: 2.038 MB / 438.9 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008061/0.3516, allocations: 6.287 MB / 445.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.148e-05/0.3516, allocations: 0 / 445.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.3516, allocations: 0 / 445.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002003/0.3519, allocations: 0 / 445.2 MB, free: 11.66 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01203/0.3639, allocations: 4.343 MB / 449.5 MB, free: 7.242 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.364, allocations: 15.89 kB / 449.5 MB, free: 7.227 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007308/0.3647, allocations: 439.3 kB / 449.9 MB, free: 6.785 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002914/0.3676, allocations: 0.6427 MB / 450.6 MB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004775/0.3724, allocations: 2.293 MB / 452.9 MB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000213/0.3726, allocations: 234.7 kB / 453.1 MB, free: 3.562 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005651/0.3732, allocations: 311.9 kB / 453.4 MB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007431/0.3806, allocations: 4.055 MB / 457.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.986e-05/0.3807, allocations: 3.938 kB / 457.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002928/0.381, allocations: 128 kB / 457.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/0.3812, allocations: 146.2 kB / 457.7 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006175/0.3874, allocations: 3.386 MB / 461.1 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02192/0.4093, allocations: 13.19 MB / 474.3 MB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004731/0.4141, allocations: 3.972 MB / 478.3 MB, free: 9.363 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.4158, allocations: 0.9801 MB / 479.3 MB, free: 8.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004513/0.4203, allocations: 2.658 MB / 481.9 MB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.304e-05/0.4204, allocations: 47.56 kB / 482 MB, free: 5.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.905e-06/0.4204, allocations: 0 / 482 MB, free: 5.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01204/0.4324, allocations: 6.036 MB / 488 MB, free: 15.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.4325, allocations: 68.72 kB / 488.1 MB, free: 15.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002843/0.4353, allocations: 1.893 MB / 490 MB, free: 13.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.64e-05/0.4355, allocations: 53.7 kB / 490 MB, free: 13.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.4367, allocations: 1.54 MB / 491.6 MB, free: 11.83 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004388/0.4371, allocations: 0.5035 MB / 492.1 MB, free: 11.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005309/0.4376, allocations: 331.4 kB / 492.4 MB, free: 10.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4378, allocations: 313.1 kB / 492.7 MB, free: 10.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.4391, allocations: 0.7652 MB / 493.5 MB, free: 9.914 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/0.4409, allocations: 1.367 MB / 494.8 MB, free: 8.281 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003299/0.4442, allocations: 2.316 MB / 497.1 MB, free: 5.699 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/0.4442, allocations: 8 kB / 497.2 MB, free: 5.691 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004396/0.4486, allocations: 2.486 MB / 499.6 MB, free: 3.188 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.4486, allocations: 12 kB / 499.6 MB, free: 3.176 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.048e-05/0.4487, allocations: 24.53 kB / 499.7 MB, free: 3.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003818/0.4491, allocations: 118.5 kB / 499.8 MB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001885/0.451, allocations: 483.2 kB / 0.4885 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.4523, allocations: 1.414 MB / 0.4899 GB, free: 1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.4538, allocations: 112 kB / 0.49 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.4539, allocations: 87.98 kB / 0.4901 GB, free: 0.8047 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001723/0.4557, allocations: 0.9851 MB / 0.4911 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/0.4561, allocations: 210.6 kB / 0.4913 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003614/0.4597, allocations: 1.958 MB / 0.4932 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.927e-05/0.4598, allocations: 16 kB / 0.4932 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4598, allocations: 3.938 kB / 0.4932 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.4598, allocations: 7.969 kB / 0.4932 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008419/0.4682, allocations: 4.991 MB / 0.4981 GB, free: 8.496 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.4683, allocations: 7.938 kB / 0.4981 GB, free: 8.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.4696, allocations: 307.8 kB / 0.4984 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003179/0.47, allocations: 94.47 kB / 0.4985 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.645e-05/0.4701, allocations: 31.98 kB / 0.4985 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.4713, allocations: 1.382 MB / 0.4999 GB, free: 6.531 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/0.4713, allocations: 7.938 kB / 0.4999 GB, free: 6.523 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004807/0.4761, allocations: 3.091 MB / 0.5029 GB, free: 3.375 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009553/0.4771, allocations: 471.6 kB / 0.5033 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002405/0.4773, allocations: 24 kB / 0.5034 GB, free: 2.871 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000965/0.4783, allocations: 79.91 kB / 0.5034 GB, free: 2.793 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.4785, allocations: 93.12 kB / 0.5035 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.567e-05/0.4786, allocations: 43.98 kB / 0.5036 GB, free: 2.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002101/0.4807, allocations: 1.281 MB / 0.5048 GB, free: 1.355 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4807, allocations: 0 / 0.5048 GB, free: 1.355 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001889/0.4826, allocations: 0.539 MB / 0.5053 GB, free: 0.8164 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005219/0.4878, allocations: 3.708 MB / 0.509 GB, free: 13.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003904/0.4918, allocations: 2.212 MB / 0.5111 GB, free: 10.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.4918, allocations: 8.188 kB / 0.5111 GB, free: 10.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.4934, allocations: 1.177 MB / 0.5123 GB, free: 9.535 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002719/0.4962, allocations: 0.5121 MB / 0.5128 GB, free: 9.031 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03356/0.5298, allocations: 20.07 MB / 0.5324 GB, free: 4.168 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002624/0.5324, allocations: 2.267 MB / 0.5346 GB, free: 1.867 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001745/0.5342, allocations: 0.5132 MB / 0.5351 GB, free: 1.352 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/0.5358, allocations: 1.179 MB / 0.5362 GB, free: 176 kB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5358, allocations: 0 / 0.5362 GB, free: 176 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2831/0.8189, allocations: 49.7 MB / 0.5848 GB, free: 93.15 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.2/16.01, allocations: 12.14 kB / 0.5848 GB, free: 93.14 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches