Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007851/0.0007851, allocations: 96.11 kB / 18 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009457/0.0009458, allocations: 200.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.7 MB / 247.5 MB, free: 9.664 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1986/0.1986, allocations: 46.19 MB / 345.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002748/0.0002748, allocations: 8 kB / 420.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1141, allocations: 63.57 MB / 483.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01364/0.1278, allocations: 11.03 MB / 494.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00785/0.1357, allocations: 3.868 MB / 498.6 MB, free: 5.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00216/0.1379, allocations: 67.69 kB / 498.7 MB, free: 5.094 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002395/0.1403, allocations: 0.7534 MB / 499.4 MB, free: 4.336 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004245/0.1446, allocations: 0.851 MB / 0.4886 GB, free: 3.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001708/0.1463, allocations: 467.5 kB / 0.489 GB, free: 3.023 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005132/0.1515, allocations: 3.633 MB / 0.4926 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004483/0.156, allocations: 2.557 MB / 0.4951 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00233/0.1584, allocations: 1.147 MB / 0.4962 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003052/0.1615, allocations: 1.653 MB / 0.4978 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008604/0.1623, allocations: 168 kB / 0.498 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001264/0.1636, allocations: 295.8 kB / 0.4982 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.1651, allocations: 0.9187 MB / 0.4991 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002742/0.1678, allocations: 1.563 MB / 0.5007 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005399/0.1732, allocations: 4.488 MB / 0.505 GB, free: 2.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1733, allocations: 7.938 kB / 0.5051 GB, free: 2.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1733, allocations: 0 / 0.5051 GB, free: 2.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002294/0.1735, allocations: 0 / 0.5051 GB, free: 2.488 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.2417/0.4153, allocations: 3.216 MB / 0.5082 GB, free: 37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.4153, allocations: 10.97 kB / 0.5082 GB, free: 37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001964/0.4173, allocations: 401.8 kB / 0.5086 GB, free: 36.81 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004009/0.4213, allocations: 2.033 MB / 0.5106 GB, free: 36.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002642/0.4216, allocations: 223.3 kB / 0.5108 GB, free: 36.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004765/0.4221, allocations: 286.2 kB / 0.5111 GB, free: 36.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006385/0.4285, allocations: 3.739 MB / 0.5147 GB, free: 34.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.714e-05/0.4286, allocations: 12.02 kB / 0.5147 GB, free: 34.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002344/0.4288, allocations: 114.8 kB / 0.5148 GB, free: 34.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001563/0.429, allocations: 140.2 kB / 0.515 GB, free: 34.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005336/0.4343, allocations: 3.182 MB / 0.5181 GB, free: 33.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01578/0.4501, allocations: 11.62 MB / 0.5294 GB, free: 26.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00327/0.4534, allocations: 2.178 MB / 0.5315 GB, free: 24.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.4553, allocations: 1.233 MB / 0.5328 GB, free: 24.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002743/0.4556, allocations: 213.8 kB / 0.533 GB, free: 24.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.4556, allocations: 54.16 kB / 0.533 GB, free: 24.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.617e-06/0.4556, allocations: 0 / 0.533 GB, free: 24.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01395/0.4696, allocations: 7.931 MB / 0.5408 GB, free: 17.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.4696, allocations: 76.64 kB / 0.5408 GB, free: 17.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002049/0.4717, allocations: 1.941 MB / 0.5427 GB, free: 15.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.722e-05/0.4718, allocations: 53.7 kB / 0.5428 GB, free: 15.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006023/0.4724, allocations: 1.37 MB / 0.5441 GB, free: 14.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002755/0.4727, allocations: 0.5198 MB / 0.5446 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/0.4729, allocations: 145.6 kB / 0.5448 GB, free: 13.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.937e-05/0.4729, allocations: 301.1 kB / 0.545 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.474, allocations: 0.8862 MB / 0.5459 GB, free: 12.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.4753, allocations: 1.348 MB / 0.5472 GB, free: 10.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002506/0.4778, allocations: 2.401 MB / 0.5496 GB, free: 8.379 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.4778, allocations: 8 kB / 0.5496 GB, free: 8.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003739/0.4816, allocations: 2.941 MB / 0.5524 GB, free: 5.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.4816, allocations: 12 kB / 0.5525 GB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/0.4816, allocations: 12 kB / 0.5525 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007584/0.4824, allocations: 388.4 kB / 0.5528 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/0.4839, allocations: 459.2 kB / 0.5533 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004643/0.4885, allocations: 6.212 MB / 0.5593 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.4899, allocations: 131.7 kB / 0.5595 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.4901, allocations: 72.14 kB / 0.5595 GB, free: 13.72 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (206): * Single equations (assignments): 202 * 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,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001493/0.4916, allocations: 0.8994 MB / 0.5604 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003238/0.4919, allocations: 213.4 kB / 0.5606 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004999/0.4969, allocations: 2.926 MB / 0.5635 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.4969, allocations: 12 kB / 0.5635 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.4969, allocations: 8 kB / 0.5635 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.497, allocations: 7.969 kB / 0.5635 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009622/0.5066, allocations: 6.155 MB / 0.5695 GB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.5066, allocations: 7.938 kB / 0.5695 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.5076, allocations: 240.1 kB / 0.5698 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001959/0.5096, allocations: 0.8018 MB / 0.5705 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.5097, allocations: 39.98 kB / 0.5706 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01135/0.5211, allocations: 9.847 MB / 0.5802 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.5211, allocations: 4 kB / 0.5802 GB, free: 8.031 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007147/0.5283, allocations: 4.196 MB / 0.5843 GB, free: 3.758 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.5293, allocations: 490.3 kB / 0.5848 GB, free: 3.258 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000257/0.5296, allocations: 43.98 kB / 0.5848 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.5307, allocations: 91.89 kB / 0.5849 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002752/0.531, allocations: 133 kB / 0.585 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.612e-05/0.5311, allocations: 43.98 kB / 0.5851 GB, free: 2.953 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001963/0.533, allocations: 1.337 MB / 0.5864 GB, free: 1.594 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.533, allocations: 3.938 kB / 0.5864 GB, free: 1.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001814/0.5349, allocations: 0.577 MB / 0.5869 GB, free: 1.016 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.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 (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003894/0.5353, allocations: 196.1 kB / 0.5871 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003852/0.5391, allocations: 2.639 MB / 0.5897 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.5391, allocations: 0 / 0.5897 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002293/0.5414, allocations: 1.645 MB / 0.5913 GB, free: 12.44 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003313/0.5448, allocations: 0.5169 MB / 0.5918 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009357/0.5541, allocations: 7.228 MB / 0.5989 GB, free: 4.637 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001863/0.556, allocations: 2.194 MB / 0.601 GB, free: 2.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006247/0.5567, allocations: 163.4 kB / 0.6012 GB, free: 2.25 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5567, allocations: 8 kB / 0.6012 GB, free: 2.242 MB / 430.1 MB Notification: Performance of Templates: time 0.09324/0.6499, allocations: 84.79 MB / 0.684 GB, free: 13.45 MB / 0.5137 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches