Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001596/0.001596, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001795/0.001796, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002462/0.002462, allocations: 67.88 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2475, allocations: 50.55 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01409/0.2616, allocations: 11.91 MB / 420.7 MB, free: 5.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007848/0.2695, allocations: 4.041 MB / 424.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002107/0.2716, allocations: 75.62 kB / 424.8 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002325/0.274, allocations: 0.8924 MB / 425.7 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003153/0.2772, allocations: 0.9668 MB / 426.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.2784, allocations: 0.5656 MB / 427.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004122/0.2826, allocations: 3.406 MB / 430.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003606/0.2862, allocations: 3.096 MB / 433.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002181/0.2884, allocations: 1.581 MB / 435.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002945/0.2913, allocations: 2.047 MB / 437.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006613/0.292, allocations: 432 kB / 437.8 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001021/0.293, allocations: 0.5428 MB / 438.3 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.2943, allocations: 1.262 MB / 439.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002166/0.2965, allocations: 1.94 MB / 441.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006276/0.3028, allocations: 5.714 MB / 447.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3028, allocations: 3.938 kB / 447.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3028, allocations: 0 / 447.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001118/0.3029, allocations: 0 / 447.3 MB, free: 10.84 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007796/0.3107, allocations: 4.037 MB / 451.3 MB, free: 6.727 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3108, allocations: 8.031 kB / 451.3 MB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005518/0.3113, allocations: 426 kB / 451.7 MB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001123/0.3125, allocations: 430.4 kB / 452.1 MB, free: 5.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003665/0.3162, allocations: 2.151 MB / 454.3 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/0.3163, allocations: 226 kB / 454.5 MB, free: 3.445 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000458/0.3168, allocations: 295.9 kB / 454.8 MB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006171/0.323, allocations: 3.847 MB / 458.6 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.979e-05/0.3231, allocations: 11.89 kB / 458.7 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002738/0.3234, allocations: 124 kB / 458.8 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001627/0.3235, allocations: 153.7 kB / 458.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005485/0.329, allocations: 3.247 MB / 462.2 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01962/0.3487, allocations: 12.06 MB / 474.2 MB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002726/0.3514, allocations: 1.941 MB / 476.2 MB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001921/0.3534, allocations: 1.145 MB / 477.3 MB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003144/0.3537, allocations: 207.5 kB / 477.5 MB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.3538, allocations: 47.88 kB / 477.6 MB, free: 11.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=139): time 2.936e-06/0.3538, allocations: 4 kB / 477.6 MB, free: 11.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=155): time 0.01386/0.3676, allocations: 7.06 MB / 484.6 MB, free: 4.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.3677, allocations: 68.72 kB / 484.7 MB, free: 4.496 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003153/0.3709, allocations: 2.036 MB / 486.7 MB, free: 2.422 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000165/0.3711, allocations: 53.7 kB / 486.8 MB, free: 2.363 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001172/0.3722, allocations: 1.499 MB / 488.3 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005218/0.3728, allocations: 0.5656 MB / 488.9 MB, free: 288 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005662/0.3733, allocations: 351.4 kB / 489.2 MB, free: 15.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3735, allocations: 305.6 kB / 489.5 MB, free: 15.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/0.3749, allocations: 0.8784 MB / 490.4 MB, free: 14.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001876/0.3768, allocations: 1.462 MB / 491.8 MB, free: 13.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003488/0.3803, allocations: 2.502 MB / 494.3 MB, free: 10.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.397e-05/0.3803, allocations: 8 kB / 494.3 MB, free: 10.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005195/0.3855, allocations: 3.023 MB / 497.4 MB, free: 7.215 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.3856, allocations: 12 kB / 497.4 MB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.313e-05/0.3856, allocations: 31.86 kB / 497.4 MB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000897/0.3865, allocations: 379.2 kB / 497.8 MB, free: 6.789 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.3882, allocations: 467.2 kB / 498.2 MB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006763/0.395, allocations: 6.709 MB / 0.4931 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.3968, allocations: 131.8 kB / 0.4932 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000175/0.397, allocations: 91.98 kB / 0.4933 GB, free: 14.99 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * 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: 3 * 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001631/0.3986, allocations: 0.9305 MB / 0.4942 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004373/0.399, allocations: 226.5 kB / 0.4945 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004486/0.4035, allocations: 2.598 MB / 0.497 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.4036, allocations: 16 kB / 0.497 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.4036, allocations: 8 kB / 0.497 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/0.4036, allocations: 7.969 kB / 0.497 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009859/0.4135, allocations: 5.823 MB / 0.5027 GB, free: 5.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.988e-06/0.4135, allocations: 4 kB / 0.5027 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.4147, allocations: 291.6 kB / 0.503 GB, free: 4.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.4158, allocations: 407.1 kB / 0.5034 GB, free: 4.48 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.4159, allocations: 39.98 kB / 0.5034 GB, free: 4.441 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008086/0.424, allocations: 8.261 MB / 0.5115 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.767e-06/0.424, allocations: 7.984 kB / 0.5115 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006176/0.4302, allocations: 3.851 MB / 0.5152 GB, free: 7.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.4313, allocations: 495.6 kB / 0.5157 GB, free: 7.156 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002576/0.4315, allocations: 36 kB / 0.5158 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.4326, allocations: 107.8 kB / 0.5159 GB, free: 7.016 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/0.4328, allocations: 105.1 kB / 0.516 GB, free: 6.914 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.4329, allocations: 55.92 kB / 0.516 GB, free: 6.859 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002182/0.4351, allocations: 1.39 MB / 0.5174 GB, free: 5.449 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4351, allocations: 0 / 0.5174 GB, free: 5.449 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001946/0.4371, allocations: 0.5585 MB / 0.5179 GB, free: 4.891 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * 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 {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.006328/0.4434, allocations: 4.49 MB / 0.5223 GB, free: 296 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004147/0.4476, allocations: 2.644 MB / 0.5249 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.4476, allocations: 4 kB / 0.5249 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002177/0.4498, allocations: 1.573 MB / 0.5264 GB, free: 11.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002457/0.4523, allocations: 0.5575 MB / 0.527 GB, free: 11.42 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.236/0.6883, allocations: 22.16 MB / 0.5486 GB, free: 119.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/0.6899, allocations: 2.248 MB / 0.5508 GB, free: 118.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001316/0.6912, allocations: 0.5364 MB / 0.5513 GB, free: 118.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001167/0.6924, allocations: 1.199 MB / 0.5525 GB, free: 117.9 MB / 462.1 MB Notification: Performance of SimCode: time 7.81e-07/0.6924, allocations: 0 / 0.5525 GB, free: 117.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09047/0.7829, allocations: 54.47 MB / 0.6057 GB, free: 66.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.69/15.47, allocations: 17.78 kB / 0.6057 GB, free: 66.02 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.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_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches