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.001188/0.001188, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001629/0.001629, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1997/0.1997, allocations: 46.11 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001326, allocations: 75.89 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1174, allocations: 62.45 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01329/0.1307, allocations: 11.72 MB / 493.2 MB, free: 8.762 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007724/0.1385, allocations: 3.949 MB / 497.1 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002684/0.1412, allocations: 79.62 kB / 497.2 MB, free: 4.719 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002681/0.144, allocations: 0.8731 MB / 498.1 MB, free: 3.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003456/0.1475, allocations: 0.9512 MB / 499 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001301/0.1488, allocations: 0.5149 MB / 499.5 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004066/0.1529, allocations: 3.348 MB / 0.4911 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003362/0.1562, allocations: 3.033 MB / 0.4941 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00236/0.1586, allocations: 1.554 MB / 0.4956 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002629/0.1613, allocations: 2.005 MB / 0.4975 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006144/0.1619, allocations: 432 kB / 0.4979 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001004/0.1629, allocations: 0.5389 MB / 0.4985 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001118/0.164, allocations: 1.231 MB / 0.4997 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001902/0.166, allocations: 1.905 MB / 0.5015 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.213/0.379, allocations: 5.584 MB / 0.507 GB, free: 22.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.379, allocations: 0 / 0.507 GB, free: 22.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.379, allocations: 0 / 0.507 GB, free: 22.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000216/0.3792, allocations: 1.375 kB / 0.507 GB, free: 22.22 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.01152/0.3908, allocations: 3.847 MB / 0.5107 GB, free: 20.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3908, allocations: 9.219 kB / 0.5108 GB, free: 20.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001717/0.3925, allocations: 397.5 kB / 0.5111 GB, free: 20.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005693/0.3982, allocations: 2.08 MB / 0.5132 GB, free: 20.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002602/0.3985, allocations: 221.2 kB / 0.5134 GB, free: 20.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009673/0.3995, allocations: 285.7 kB / 0.5136 GB, free: 20.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008567/0.4081, allocations: 3.744 MB / 0.5173 GB, free: 19.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.953e-05/0.4082, allocations: 3.188 kB / 0.5173 GB, free: 19.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003057/0.4085, allocations: 115.1 kB / 0.5174 GB, free: 19.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001913/0.4087, allocations: 141.1 kB / 0.5176 GB, free: 19.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006842/0.4156, allocations: 3.178 MB / 0.5207 GB, free: 18.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01943/0.435, allocations: 11.44 MB / 0.5318 GB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003293/0.4384, allocations: 2.175 MB / 0.5339 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001649/0.4401, allocations: 1.229 MB / 0.5351 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002602/0.4403, allocations: 214.8 kB / 0.5354 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.4404, allocations: 45.34 kB / 0.5354 GB, free: 10.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 4.118e-06/0.4404, allocations: 0 / 0.5354 GB, free: 10.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01576/0.4562, allocations: 7.862 MB / 0.5431 GB, free: 4.887 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.4562, allocations: 68.72 kB / 0.5431 GB, free: 4.805 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002651/0.4589, allocations: 1.949 MB / 0.545 GB, free: 2.812 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002032/0.4591, allocations: 53.7 kB / 0.5451 GB, free: 2.754 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006319/0.4598, allocations: 1.372 MB / 0.5464 GB, free: 1.375 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003482/0.4601, allocations: 0.5287 MB / 0.5469 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004389/0.4606, allocations: 315.3 kB / 0.5472 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.695e-05/0.4606, allocations: 308.3 kB / 0.5475 GB, free: 244 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.462, allocations: 0.8862 MB / 0.5484 GB, free: 15.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.4637, allocations: 1.347 MB / 0.5497 GB, free: 13.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003381/0.4671, allocations: 2.385 MB / 0.5521 GB, free: 11.3 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-05/0.4671, allocations: 4 kB / 0.5521 GB, free: 11.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004908/0.472, allocations: 2.927 MB / 0.5549 GB, free: 8.422 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.4721, allocations: 12 kB / 0.5549 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/0.4721, allocations: 16 kB / 0.5549 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009082/0.473, allocations: 397.6 kB / 0.5553 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/0.4747, allocations: 443.5 kB / 0.5557 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006023/0.4808, allocations: 6.766 MB / 0.5624 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002069/0.4829, allocations: 127.8 kB / 0.5625 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/0.4831, allocations: 68 kB / 0.5625 GB, free: 280 kB / 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.00154/0.4847, allocations: 0.9075 MB / 0.5634 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004435/0.4851, allocations: 209.4 kB / 0.5636 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004862/0.49, allocations: 2.925 MB / 0.5665 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.49, allocations: 12 kB / 0.5665 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.986e-06/0.49, allocations: 8 kB / 0.5665 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-05/0.49, allocations: 7.969 kB / 0.5665 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/0.5009, allocations: 6.12 MB / 0.5725 GB, free: 6.074 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.5009, allocations: 4.094 kB / 0.5725 GB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.502, allocations: 246.6 kB / 0.5727 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002016/0.504, allocations: 0.8103 MB / 0.5735 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000134/0.5041, allocations: 43.97 kB / 0.5736 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/0.5158, allocations: 10.75 MB / 0.5841 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.5159, allocations: 5.969 kB / 0.5841 GB, free: 9.852 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006517/0.5224, allocations: 4.171 MB / 0.5881 GB, free: 5.633 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/0.5238, allocations: 492.5 kB / 0.5886 GB, free: 5.133 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003903/0.5242, allocations: 35.98 kB / 0.5886 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.5253, allocations: 92.14 kB / 0.5887 GB, free: 5.008 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/0.5256, allocations: 122.4 kB / 0.5888 GB, free: 4.887 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.5257, allocations: 51.98 kB / 0.5889 GB, free: 4.836 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002033/0.5278, allocations: 1.341 MB / 0.5902 GB, free: 3.473 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.382e-06/0.5278, allocations: 0 / 0.5902 GB, free: 3.473 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002148/0.5299, allocations: 0.5801 MB / 0.5908 GB, free: 2.895 MB / 430.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.0004464/0.5304, allocations: 201.2 kB / 0.591 GB, free: 2.703 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003975/0.5344, allocations: 2.644 MB / 0.5935 GB, free: 56 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.5344, allocations: 0 / 0.5935 GB, free: 56 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002499/0.5369, allocations: 1.636 MB / 0.5951 GB, free: 14.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.5396, allocations: 0.54 MB / 0.5957 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.5499, allocations: 5.74 MB / 0.6013 GB, free: 8.098 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001991/0.5519, allocations: 2.225 MB / 0.6034 GB, free: 5.844 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001546/0.5535, allocations: 473.8 kB / 0.6039 GB, free: 5.379 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004703/0.554, allocations: 151.4 kB / 0.604 GB, free: 5.23 MB / 446.1 MB Notification: Performance of SimCode: time 1.192e-06/0.554, allocations: 0 / 0.604 GB, free: 5.23 MB / 446.1 MB Notification: Performance of Templates: time 0.05558/0.6096, allocations: 32.91 MB / 0.6362 GB, free: 4.66 MB / 478.1 MB 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 -s gbode -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