Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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_4.0.0_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_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 106.5 kB / 17.2 MB, free: 6.289 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.001361/0.001362, allocations: 194 kB / 18.12 MB, free: 5.383 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.428/1.428, allocations: 222.9 MB / 241.8 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2334/0.2334, allocations: 44.18 MB / 336.1 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 64.22 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1402, allocations: 60.82 MB / 468.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01413/0.1544, allocations: 11.56 MB / 480.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008957/0.1634, allocations: 3.848 MB / 483.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002667/0.1661, allocations: 67.69 kB / 484 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002975/0.1692, allocations: 0.7612 MB / 484.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004377/0.1736, allocations: 0.8549 MB / 485.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.1758, allocations: 463.5 kB / 486.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005994/0.1818, allocations: 3.64 MB / 489.7 MB, free: 9.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004774/0.1866, allocations: 2.589 MB / 492.3 MB, free: 6.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003205/0.1898, allocations: 1.358 MB / 493.7 MB, free: 5.578 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00461/0.1945, allocations: 1.919 MB / 495.6 MB, free: 3.652 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001573/0.1961, allocations: 263.9 kB / 495.8 MB, free: 3.395 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00194/0.1981, allocations: 379.8 kB / 496.2 MB, free: 3.023 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002234/0.2003, allocations: 1.059 MB / 497.3 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004731/0.2051, allocations: 1.71 MB / 499 MB, free: 248 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009131/0.2142, allocations: 5.366 MB / 0.4925 GB, free: 10.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.637e-06/0.2143, allocations: 4 kB / 0.4925 GB, free: 10.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2143, allocations: 7.938 kB / 0.4925 GB, free: 10.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002633/0.2146, allocations: 0 / 0.4925 GB, free: 10.85 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.01211/0.2267, allocations: 3.833 MB / 0.4963 GB, free: 6.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.681e-05/0.2268, allocations: 8.031 kB / 0.4963 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001238/0.228, allocations: 388.6 kB / 0.4966 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003377/0.2314, allocations: 2.024 MB / 0.4986 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.2316, allocations: 230 kB / 0.4988 GB, free: 4.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000429/0.2321, allocations: 279.9 kB / 0.4991 GB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007044/0.2391, allocations: 3.731 MB / 0.5028 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.834e-05/0.2392, allocations: 11.94 kB / 0.5028 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002601/0.2395, allocations: 120 kB / 0.5029 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3052/0.5447, allocations: 135 kB / 0.503 GB, free: 46.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008554/0.5533, allocations: 3.171 MB / 0.5061 GB, free: 46.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02115/0.5745, allocations: 11.57 MB / 0.5174 GB, free: 40.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003711/0.5783, allocations: 2.173 MB / 0.5195 GB, free: 38.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/0.5802, allocations: 1.222 MB / 0.5207 GB, free: 38.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003015/0.5805, allocations: 212.1 kB / 0.5209 GB, free: 38.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.5805, allocations: 53.41 kB / 0.521 GB, free: 38.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.096e-06/0.5805, allocations: 0 / 0.521 GB, free: 38.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01634/0.5969, allocations: 7.863 MB / 0.5287 GB, free: 33.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.597, allocations: 69.25 kB / 0.5287 GB, free: 33.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002833/0.5998, allocations: 1.945 MB / 0.5306 GB, free: 32.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001339/0.6, allocations: 49.7 kB / 0.5307 GB, free: 32.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006969/0.6007, allocations: 1.366 MB / 0.532 GB, free: 30.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000312/0.601, allocations: 0.5152 MB / 0.5325 GB, free: 30.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004525/0.6014, allocations: 322.5 kB / 0.5328 GB, free: 29.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.243e-05/0.6015, allocations: 305.1 kB / 0.5331 GB, free: 29.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.6027, allocations: 0.8862 MB / 0.534 GB, free: 28.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.604, allocations: 1.348 MB / 0.5353 GB, free: 27.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002629/0.6066, allocations: 2.391 MB / 0.5376 GB, free: 24.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/0.6067, allocations: 4 kB / 0.5376 GB, free: 24.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.00427/0.6109, allocations: 2.936 MB / 0.5405 GB, free: 21.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.611, allocations: 12 kB / 0.5405 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/0.611, allocations: 12 kB / 0.5405 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008407/0.6119, allocations: 383.2 kB / 0.5409 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001628/0.6135, allocations: 455.3 kB / 0.5413 GB, free: 20.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004939/0.6184, allocations: 6.204 MB / 0.5474 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002233/0.6207, allocations: 115.9 kB / 0.5475 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/0.6209, allocations: 72.12 kB / 0.5476 GB, free: 13.91 MB / 382.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.001822/0.6227, allocations: 0.9033 MB / 0.5484 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005396/0.6233, allocations: 221.3 kB / 0.5486 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004538/0.6278, allocations: 2.911 MB / 0.5515 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.6279, allocations: 16.09 kB / 0.5515 GB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.6279, allocations: 11.94 kB / 0.5515 GB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.6279, allocations: 7.969 kB / 0.5515 GB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009529/0.6374, allocations: 6.151 MB / 0.5575 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.6375, allocations: 4 kB / 0.5575 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.6385, allocations: 244.1 kB / 0.5578 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001875/0.6404, allocations: 0.8 MB / 0.5585 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/0.6405, allocations: 39.97 kB / 0.5586 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01135/0.6519, allocations: 9.825 MB / 0.5682 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.969e-06/0.6519, allocations: 8.047 kB / 0.5682 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006956/0.6589, allocations: 4.174 MB / 0.5723 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/0.6603, allocations: 486.3 kB / 0.5727 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003319/0.6606, allocations: 40 kB / 0.5728 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.6617, allocations: 95.88 kB / 0.5729 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.6621, allocations: 125 kB / 0.573 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.6622, allocations: 43.98 kB / 0.573 GB, free: 3.199 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002147/0.6644, allocations: 1.336 MB / 0.5743 GB, free: 1.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6644, allocations: 0 / 0.5743 GB, free: 1.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002142/0.6665, allocations: 0.5857 MB / 0.5749 GB, free: 1.258 MB / 398.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.0004113/0.667, allocations: 186.7 kB / 0.5751 GB, free: 1.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004068/0.671, allocations: 2.638 MB / 0.5776 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.6711, allocations: 4 kB / 0.5777 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002676/0.6738, allocations: 1.628 MB / 0.5792 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003259/0.677, allocations: 0.5169 MB / 0.5797 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.6882, allocations: 7.07 MB / 0.5867 GB, free: 5.062 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002109/0.6904, allocations: 2.209 MB / 0.5888 GB, free: 2.824 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00181/0.6922, allocations: 465.7 kB / 0.5893 GB, free: 2.367 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004751/0.6927, allocations: 155.4 kB / 0.5894 GB, free: 2.215 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6927, allocations: 0 / 0.5894 GB, free: 2.215 MB / 414.1 MB Notification: Performance of Templates: time 0.05746/0.7502, allocations: 31.66 MB / 0.6203 GB, free: 2.812 MB / 446.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches