Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008438/0.0008439, allocations: 88.3 kB / 16.65 MB, free: 6.535 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.0008581/0.0008583, allocations: 173.1 kB / 17.56 MB, free: 6.184 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.334/1.334, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.0003028, allocations: 11.94 kB / 301.4 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1136, allocations: 50.41 MB / 351.8 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01375/0.1274, allocations: 11.19 MB / 363 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008057/0.1355, allocations: 3.898 MB / 366.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00243/0.138, allocations: 63.69 kB / 367 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002357/0.1404, allocations: 0.7612 MB / 367.8 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00369/0.1441, allocations: 0.8626 MB / 368.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001545/0.1457, allocations: 0.4917 MB / 369.1 MB, free: 2.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1952/0.3408, allocations: 3.696 MB / 372.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003844/0.3447, allocations: 2.603 MB / 375.4 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002032/0.3468, allocations: 1.156 MB / 376.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002706/0.3495, allocations: 1.669 MB / 378.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005743/0.3501, allocations: 170 kB / 378.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009397/0.351, allocations: 292.1 kB / 378.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009926/0.352, allocations: 0.9399 MB / 379.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00187/0.3539, allocations: 1.595 MB / 381.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006881/0.3608, allocations: 5.275 MB / 386.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3608, allocations: 0 / 386.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.3608, allocations: 0 / 386.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002086/0.3611, allocations: 0 / 386.5 MB, free: 7.512 MB / 302.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.008398/0.3695, allocations: 3.304 MB / 389.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3695, allocations: 10.12 kB / 389.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001494/0.371, allocations: 407.1 kB / 390.2 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003601/0.3746, allocations: 2.07 MB / 392.3 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.3748, allocations: 232.1 kB / 392.5 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004759/0.3753, allocations: 301.1 kB / 392.8 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006299/0.3816, allocations: 3.85 MB / 396.6 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.92e-05/0.3817, allocations: 7.312 kB / 396.7 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002547/0.382, allocations: 122.2 kB / 396.8 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001234/0.3821, allocations: 153.6 kB / 396.9 MB, free: 1.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004888/0.387, allocations: 3.254 MB / 400.2 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01891/0.4059, allocations: 12.21 MB / 412.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002503/0.4084, allocations: 1.945 MB / 414.3 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001887/0.4103, allocations: 1.161 MB / 415.5 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003/0.4106, allocations: 219.2 kB / 415.7 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.4107, allocations: 43.88 kB / 415.8 MB, free: 36 kB / 318.1 MB Notification: Performance of pre-optimization done (n=139): time 3.747e-06/0.4107, allocations: 0 / 415.8 MB, free: 36 kB / 318.1 MB Notification: Performance of matching and sorting (n=155): time 0.01367/0.4244, allocations: 7.043 MB / 422.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.4244, allocations: 72.72 kB / 422.9 MB, free: 8.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003032/0.4275, allocations: 2.024 MB / 424.9 MB, free: 6.738 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001224/0.4276, allocations: 57.08 kB / 424.9 MB, free: 6.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.4286, allocations: 1.466 MB / 426.4 MB, free: 5.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004244/0.4291, allocations: 0.5291 MB / 426.9 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/0.4293, allocations: 157.6 kB / 427.1 MB, free: 4.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.844e-05/0.4294, allocations: 309 kB / 427.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.4308, allocations: 0.8784 MB / 428.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001725/0.4325, allocations: 1.456 MB / 429.7 MB, free: 1.641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003284/0.4358, allocations: 2.508 MB / 432.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.719e-06/0.4358, allocations: 4 kB / 432.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004903/0.4407, allocations: 3.015 MB / 435.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.4408, allocations: 12 kB / 435.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.4408, allocations: 24.03 kB / 435.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008891/0.4417, allocations: 383.1 kB / 435.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001642/0.4434, allocations: 475.5 kB / 436.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005775/0.4492, allocations: 6.153 MB / 442.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/0.4511, allocations: 135.8 kB / 442.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002667/0.4514, allocations: 83.98 kB / 442.5 MB, free: 4.422 MB / 350.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.002029/0.4534, allocations: 0.9342 MB / 443.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000596/0.454, allocations: 217.3 kB / 443.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004846/0.4589, allocations: 2.6 MB / 446.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.4589, allocations: 16 kB / 446.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/0.459, allocations: 8 kB / 446.3 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/0.459, allocations: 7.969 kB / 446.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01086/0.4698, allocations: 5.863 MB / 452.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.4699, allocations: 8.031 kB / 452.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.4711, allocations: 289.2 kB / 452.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.4722, allocations: 406.6 kB / 452.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001393/0.4723, allocations: 35.98 kB / 452.9 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007639/0.48, allocations: 7.597 MB / 460.5 MB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.48, allocations: 4.172 kB / 460.5 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006615/0.4867, allocations: 3.848 MB / 464.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/0.4883, allocations: 0.4903 MB / 464.8 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009212/0.4892, allocations: 35.98 kB / 464.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/0.4909, allocations: 95.89 kB / 464.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.4912, allocations: 116.5 kB / 465 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/0.4913, allocations: 51.98 kB / 465.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003415/0.4947, allocations: 1.386 MB / 466.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4947, allocations: 0 / 466.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002977/0.4977, allocations: 0.5664 MB / 467 MB, free: 11.19 MB / 382.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.0005957/0.4983, allocations: 204.9 kB / 467.2 MB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00462/0.503, allocations: 2.626 MB / 469.9 MB, free: 8.309 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/0.503, allocations: 4 kB / 469.9 MB, free: 8.305 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002361/0.5053, allocations: 1.583 MB / 471.5 MB, free: 6.676 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004402/0.5098, allocations: 0.5124 MB / 472 MB, free: 6.164 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/0.5221, allocations: 7.357 MB / 479.3 MB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002754/0.5249, allocations: 2.259 MB / 481.6 MB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001955/0.5268, allocations: 0.522 MB / 482.1 MB, free: 11.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006694/0.5275, allocations: 163.4 kB / 482.3 MB, free: 11.76 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5275, allocations: 0 / 482.3 MB, free: 11.76 MB / 398.1 MB Notification: Performance of Templates: time 0.05584/0.5834, allocations: 29.22 MB / 0.4995 GB, free: 14.84 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches