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.001607/0.001607, allocations: 104.2 kB / 17.58 MB, free: 5.559 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.001639/0.00164, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.317/2.317, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001542/0.001542, allocations: 51.92 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1098, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.02167/0.1316, allocations: 15.84 MB / 343.2 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.1443, allocations: 5.393 MB / 348.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003663/0.1481, allocations: 91.62 kB / 348.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004233/0.1524, allocations: 1.106 MB / 349.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006087/0.1585, allocations: 1.351 MB / 351.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003741/0.1623, allocations: 0.9625 MB / 352.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00686/0.1691, allocations: 3.955 MB / 356.1 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006657/0.1758, allocations: 3.548 MB / 359.6 MB, free: 3.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00384/0.1797, allocations: 1.873 MB / 361.5 MB, free: 2.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004406/0.1842, allocations: 2.261 MB / 363.8 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00184/0.1861, allocations: 0.5156 MB / 364.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00299/0.1891, allocations: 0.7497 MB / 365 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002363/0.1915, allocations: 1.293 MB / 366.3 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004962/0.1965, allocations: 2.248 MB / 368.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.2068, allocations: 6.815 MB / 375.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.2068, allocations: 0 / 375.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2069, allocations: 0 / 375.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000299/0.2072, allocations: 0 / 375.4 MB, free: 4.121 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.2328/0.44, allocations: 4.657 MB / 380 MB, free: 49.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.564e-05/0.4401, allocations: 9.516 kB / 380.1 MB, free: 49.34 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003548/0.4436, allocations: 488.7 kB / 380.5 MB, free: 49.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006841/0.4505, allocations: 0.6824 MB / 381.2 MB, free: 49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0102/0.4608, allocations: 2.351 MB / 383.6 MB, free: 47.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006815/0.4616, allocations: 271.1 kB / 383.8 MB, free: 47.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002246/0.4638, allocations: 346 kB / 384.2 MB, free: 47.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02619/0.4901, allocations: 4.467 MB / 388.6 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003834/0.4905, allocations: 6.594 kB / 388.6 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002272/0.4928, allocations: 138 kB / 388.8 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006164/0.4935, allocations: 163.1 kB / 388.9 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0194/0.513, allocations: 3.736 MB / 392.7 MB, free: 44.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05151/0.5646, allocations: 14.5 MB / 407.2 MB, free: 33.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008423/0.5731, allocations: 5.365 MB / 412.5 MB, free: 27.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003511/0.5767, allocations: 1.274 MB / 413.8 MB, free: 25.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01148/0.5882, allocations: 3.8 MB / 417.6 MB, free: 21.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/0.5883, allocations: 43.88 kB / 417.7 MB, free: 21.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 6.452e-06/0.5883, allocations: 0 / 417.7 MB, free: 21.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.01534/0.6037, allocations: 5.473 MB / 423.1 MB, free: 16.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/0.6038, allocations: 68.72 kB / 423.2 MB, free: 16.17 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006098/0.6099, allocations: 2.098 MB / 425.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004277/0.6104, allocations: 49.7 kB / 425.3 MB, free: 13.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001744/0.6122, allocations: 1.656 MB / 427 MB, free: 12.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007916/0.613, allocations: 467.1 kB / 427.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001147/0.6142, allocations: 335.2 kB / 427.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.537e-05/0.6143, allocations: 305.1 kB / 428.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001836/0.6161, allocations: 0.7144 MB / 428.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002189/0.6183, allocations: 1.353 MB / 430.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004375/0.6227, allocations: 2.218 MB / 432.4 MB, free: 6.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.709e-05/0.6228, allocations: 8 kB / 432.4 MB, free: 6.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006871/0.6297, allocations: 2.521 MB / 434.9 MB, free: 3.809 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.71e-05/0.6298, allocations: 16 kB / 434.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.669e-05/0.6299, allocations: 23.94 kB / 434.9 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006031/0.6305, allocations: 143 kB / 435.1 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002707/0.6332, allocations: 463.3 kB / 435.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00345/0.6367, allocations: 3.36 MB / 438.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003357/0.6401, allocations: 111.8 kB / 439 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004744/0.6406, allocations: 84 kB / 439.1 MB, free: 15.34 MB / 334.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.00388/0.6445, allocations: 1.052 MB / 440.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001159/0.6457, allocations: 209.4 kB / 440.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006983/0.6527, allocations: 2.177 MB / 442.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/0.6528, allocations: 16 kB / 442.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/0.6528, allocations: 8 kB / 442.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-05/0.6528, allocations: 7.969 kB / 442.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01793/0.6708, allocations: 5.164 MB / 447.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/0.6708, allocations: 4 kB / 447.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/0.6726, allocations: 227.7 kB / 447.9 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001209/0.6738, allocations: 279.3 kB / 448.2 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001887/0.674, allocations: 24 kB / 448.2 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01205/0.6861, allocations: 7.802 MB / 456 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.518e-05/0.6862, allocations: 12.06 kB / 456 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009815/0.696, allocations: 3.167 MB / 459.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002199/0.6983, allocations: 454.4 kB / 459.6 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001115/0.6994, allocations: 36 kB / 459.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002326/0.7018, allocations: 71.91 kB / 459.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000392/0.7022, allocations: 92.75 kB / 459.8 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001777/0.7024, allocations: 36 kB / 459.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.005398/0.7078, allocations: 1.435 MB / 461.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7079, allocations: 0 / 461.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.005759/0.7137, allocations: 0.5558 MB / 461.9 MB, free: 7.66 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.01064/0.7243, allocations: 3.8 MB / 465.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.009206/0.7336, allocations: 2.558 MB / 468.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.7337, allocations: 0 / 468.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003978/0.7377, allocations: 1.378 MB / 469.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006261/0.744, allocations: 0.5593 MB / 470.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0635/0.8075, allocations: 23.92 MB / 494.1 MB, free: 5.137 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003906/0.8115, allocations: 2.417 MB / 496.5 MB, free: 2.688 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002387/0.8139, allocations: 498.5 kB / 497 MB, free: 2.199 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002373/0.8163, allocations: 1.304 MB / 498.3 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of SimCode: time 1.173e-06/0.8163, allocations: 0 / 498.3 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.365/1.181, allocations: 52.43 MB / 0.5378 GB, free: 141.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.72/16.9, allocations: 8.031 kB / 0.5378 GB, free: 141.1 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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