Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",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.0007493/0.0007494, allocations: 93.25 kB / 17.3 MB, free: 6.391 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.0007658/0.0007659, allocations: 172.9 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004604/0.0004604, allocations: 14.81 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1061, allocations: 47.58 MB / 329.1 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01711/0.1233, allocations: 14.9 MB / 344 MB, free: 4.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01436/0.1377, allocations: 5.273 MB / 349.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004077/0.1419, allocations: 83.62 kB / 349.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003591/0.1455, allocations: 0.9676 MB / 350.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005359/0.1508, allocations: 1.205 MB / 351.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002193/0.1531, allocations: 0.8656 MB / 352.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005857/0.1589, allocations: 4.083 MB / 356.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003819/0.1628, allocations: 2.966 MB / 359.4 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002624/0.1654, allocations: 1.322 MB / 360.7 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002374/0.1678, allocations: 1.816 MB / 362.5 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003574/0.1682, allocations: 204 kB / 362.7 MB, free: 1.785 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001274/0.1694, allocations: 443.7 kB / 363.2 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000913/0.1704, allocations: 0.9106 MB / 364.1 MB, free: 448 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002211/0.1726, allocations: 1.836 MB / 365.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007009/0.1796, allocations: 6.431 MB / 372.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.03e-05/0.1796, allocations: 0 / 372.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1797, allocations: 3.938 kB / 372.4 MB, free: 8.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000222/0.1799, allocations: 0 / 372.4 MB, free: 8.129 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01079/0.1907, allocations: 3.917 MB / 376.3 MB, free: 4.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.393e-05/0.1908, allocations: 8.031 kB / 376.3 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001133/0.1919, allocations: 489.5 kB / 376.8 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003049/0.195, allocations: 0.6831 MB / 377.4 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004263/0.1992, allocations: 2.334 MB / 379.8 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002396/0.1995, allocations: 267.2 kB / 380 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1985/0.398, allocations: 345.9 kB / 380.4 MB, free: 48.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01273/0.4108, allocations: 4.459 MB / 384.8 MB, free: 47.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.302e-05/0.4109, allocations: 6.141 kB / 384.8 MB, free: 47.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003276/0.4113, allocations: 139.3 kB / 385 MB, free: 47.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000227/0.4115, allocations: 162.4 kB / 385.1 MB, free: 47.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008403/0.4199, allocations: 3.744 MB / 388.9 MB, free: 45.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02248/0.4424, allocations: 14.56 MB / 403.4 MB, free: 35.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004381/0.4469, allocations: 5.367 MB / 408.8 MB, free: 30.86 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/0.4488, allocations: 1.275 MB / 410.1 MB, free: 30.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005469/0.4543, allocations: 3.825 MB / 413.9 MB, free: 26.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.4543, allocations: 43.88 kB / 414 MB, free: 26.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 3.316e-06/0.4543, allocations: 1.094 kB / 414 MB, free: 26.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.008372/0.4627, allocations: 5.486 MB / 419.4 MB, free: 20.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.4628, allocations: 64.72 kB / 419.5 MB, free: 20.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00264/0.4654, allocations: 2.106 MB / 421.6 MB, free: 18.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.933e-05/0.4655, allocations: 49.7 kB / 421.7 MB, free: 18.39 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008047/0.4663, allocations: 1.657 MB / 423.3 MB, free: 16.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003173/0.4667, allocations: 459.1 kB / 423.8 MB, free: 16.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.4668, allocations: 149.6 kB / 423.9 MB, free: 16.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.589e-05/0.4669, allocations: 306.6 kB / 424.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009141/0.4678, allocations: 0.7145 MB / 424.9 MB, free: 15.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/0.4689, allocations: 1.358 MB / 426.3 MB, free: 13.47 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.4711, allocations: 2.235 MB / 428.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.4711, allocations: 4 kB / 428.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003678/0.4748, allocations: 2.517 MB / 431 MB, free: 8.387 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.4748, allocations: 12 kB / 431 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.482e-05/0.4749, allocations: 20.5 kB / 431.1 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003933/0.4753, allocations: 150.3 kB / 431.2 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.4767, allocations: 463.3 kB / 431.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002038/0.4788, allocations: 3.079 MB / 434.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/0.4806, allocations: 119.8 kB / 434.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.4807, allocations: 83.98 kB / 434.9 MB, free: 4.203 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002234/0.483, allocations: 1.051 MB / 436 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004124/0.4834, allocations: 215.2 kB / 436.2 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003125/0.4865, allocations: 2.185 MB / 438.4 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.4865, allocations: 12 kB / 438.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.4865, allocations: 4 kB / 438.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.4866, allocations: 7.969 kB / 438.4 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008561/0.4951, allocations: 5.169 MB / 443.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/0.4952, allocations: 0 / 443.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000985/0.4962, allocations: 235.9 kB / 443.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007233/0.4969, allocations: 275.2 kB / 444.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.58e-05/0.497, allocations: 31.98 kB / 444.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006801/0.5038, allocations: 7.11 MB / 451.2 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.5038, allocations: 4 kB / 451.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005102/0.5089, allocations: 3.188 MB / 454.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.51, allocations: 462.3 kB / 454.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/0.5103, allocations: 28.38 kB / 454.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009289/0.5112, allocations: 75.92 kB / 455 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.5114, allocations: 96.75 kB / 455.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.887e-05/0.5115, allocations: 37.84 kB / 455.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002377/0.5139, allocations: 1.435 MB / 456.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5139, allocations: 0 / 456.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002206/0.5161, allocations: 0.5641 MB / 457.1 MB, free: 13.19 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0049/0.521, allocations: 3.788 MB / 460.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003485/0.5245, allocations: 2.095 MB / 463 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.5245, allocations: 0 / 463 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002057/0.5266, allocations: 1.387 MB / 464.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003691/0.5303, allocations: 0.5216 MB / 464.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06034/0.5907, allocations: 25.44 MB / 490.3 MB, free: 9.629 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003018/0.5938, allocations: 2.417 MB / 492.8 MB, free: 7.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002332/0.5961, allocations: 498.5 kB / 493.2 MB, free: 6.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002263/0.5984, allocations: 1.3 MB / 494.5 MB, free: 5.391 MB / 382.1 MB Notification: Performance of SimCode: time 1.372e-06/0.5984, allocations: 0 / 494.5 MB, free: 5.391 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09557/0.694, allocations: 50.59 MB / 0.5323 GB, free: 2.711 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.6943, allocations: 255.5 kB / 0.5326 GB, free: 2.453 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.08/3.775, allocations: 0 / 0.5326 GB, free: 2.453 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches