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.001103/0.001103, allocations: 109.3 kB / 18.45 MB, free: 4.625 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.001252/0.001253, allocations: 185.1 kB / 19.37 MB, free: 3.707 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.333/1.333, allocations: 222.9 MB / 243.1 MB, free: 15.06 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.2075/0.2075, allocations: 44.18 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 63.91 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3735, allocations: 60.82 MB / 0.5196 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01442/0.388, allocations: 11.69 MB / 0.531 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009942/0.398, allocations: 3.885 MB / 0.5348 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003382/0.4014, allocations: 73.12 kB / 0.5348 GB, free: 8.008 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003321/0.4048, allocations: 0.862 MB / 0.5357 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004727/0.4095, allocations: 0.9594 MB / 0.5366 GB, free: 6.531 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001917/0.4115, allocations: 0.5099 MB / 0.5371 GB, free: 6.082 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005719/0.4172, allocations: 3.342 MB / 0.5404 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005982/0.4232, allocations: 3.035 MB / 0.5433 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003535/0.4268, allocations: 1.558 MB / 0.5449 GB, free: 1.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004387/0.4312, allocations: 2.011 MB / 0.5468 GB, free: 16 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001493/0.4327, allocations: 432 kB / 0.5472 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002369/0.4351, allocations: 0.5232 MB / 0.5478 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002121/0.4372, allocations: 1.239 MB / 0.549 GB, free: 13.83 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004211/0.4414, allocations: 1.898 MB / 0.5508 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00772/0.4492, allocations: 5.578 MB / 0.5563 GB, free: 6.328 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4492, allocations: 0 / 0.5563 GB, free: 6.328 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4492, allocations: 0 / 0.5563 GB, free: 6.328 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002291/0.4495, allocations: 4 kB / 0.5563 GB, free: 6.324 MB / 414.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.01108/0.4605, allocations: 3.841 MB / 0.56 GB, free: 2.414 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.4606, allocations: 11.97 kB / 0.56 GB, free: 2.402 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001675/0.4623, allocations: 388.6 kB / 0.5604 GB, free: 2.02 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00384/0.4661, allocations: 2.083 MB / 0.5624 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/0.4663, allocations: 217.9 kB / 0.5626 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004389/0.4668, allocations: 287.8 kB / 0.5629 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006775/0.4736, allocations: 3.735 MB / 0.5666 GB, free: 11.58 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.25e-05/0.4737, allocations: 3.984 kB / 0.5666 GB, free: 11.58 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002586/0.4739, allocations: 120 kB / 0.5667 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001518/0.4741, allocations: 141.5 kB / 0.5668 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005188/0.4793, allocations: 3.172 MB / 0.5699 GB, free: 8.137 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01977/0.4991, allocations: 11.44 MB / 0.5811 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003851/0.503, allocations: 2.169 MB / 0.5832 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002019/0.505, allocations: 1.222 MB / 0.5844 GB, free: 8.891 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003358/0.5054, allocations: 211.5 kB / 0.5846 GB, free: 8.645 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.733e-05/0.5054, allocations: 60.28 kB / 0.5847 GB, free: 8.578 MB / 446.1 MB Notification: Performance of pre-optimization done (n=139): time 3.647e-06/0.5054, allocations: 0 / 0.5847 GB, free: 8.578 MB / 446.1 MB Notification: Performance of matching and sorting (n=154): time 0.01814/0.5236, allocations: 7.862 MB / 0.5923 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.847e-05/0.5237, allocations: 72.66 kB / 0.5924 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00398/0.5277, allocations: 1.941 MB / 0.5943 GB, free: 14.57 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001469/0.5278, allocations: 49.7 kB / 0.5943 GB, free: 14.52 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.529, allocations: 1.366 MB / 0.5957 GB, free: 13.14 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005506/0.5295, allocations: 0.5237 MB / 0.5962 GB, free: 12.61 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006004/0.5301, allocations: 319.3 kB / 0.5965 GB, free: 12.29 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.5303, allocations: 309.1 kB / 0.5968 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/0.5318, allocations: 0.8862 MB / 0.5977 GB, free: 11.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/0.5337, allocations: 1.34 MB / 0.599 GB, free: 9.559 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003599/0.5373, allocations: 2.389 MB / 0.6013 GB, free: 6.98 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.556e-05/0.5373, allocations: 4 kB / 0.6013 GB, free: 6.977 MB / 462.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006046/0.5434, allocations: 2.936 MB / 0.6042 GB, free: 4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.859e-05/0.5434, allocations: 16.34 kB / 0.6042 GB, free: 3.984 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.18e-05/0.5435, allocations: 16 kB / 0.6042 GB, free: 3.969 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000968/0.5445, allocations: 383.1 kB / 0.6046 GB, free: 3.582 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/0.5462, allocations: 455.2 kB / 0.605 GB, free: 3.137 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006969/0.5532, allocations: 6.749 MB / 0.6116 GB, free: 11.97 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002164/0.5554, allocations: 127.8 kB / 0.6117 GB, free: 11.85 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00033/0.5557, allocations: 75.98 kB / 0.6118 GB, free: 11.77 MB / 478.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.002118/0.5578, allocations: 0.8955 MB / 0.6127 GB, free: 10.87 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000745/0.5586, allocations: 217.3 kB / 0.6129 GB, free: 10.65 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005815/0.5644, allocations: 2.911 MB / 0.6157 GB, free: 7.723 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.715e-05/0.5645, allocations: 16 kB / 0.6157 GB, free: 7.707 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.281e-05/0.5645, allocations: 12 kB / 0.6157 GB, free: 7.695 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/0.5645, allocations: 7.969 kB / 0.6157 GB, free: 7.688 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01253/0.5771, allocations: 6.122 MB / 0.6217 GB, free: 1.434 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.5771, allocations: 7.938 kB / 0.6217 GB, free: 1.426 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.5782, allocations: 239.6 kB / 0.622 GB, free: 1.191 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002175/0.5804, allocations: 0.8004 MB / 0.6227 GB, free: 392 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001388/0.5806, allocations: 39.97 kB / 0.6228 GB, free: 352 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01323/0.5938, allocations: 10.76 MB / 0.6333 GB, free: 5.152 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.5939, allocations: 4 kB / 0.6333 GB, free: 5.148 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007605/0.6015, allocations: 4.172 MB / 0.6374 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/0.6029, allocations: 486.4 kB / 0.6378 GB, free: 412 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006279/0.6035, allocations: 35.98 kB / 0.6379 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/0.605, allocations: 95.89 kB / 0.638 GB, free: 280 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003504/0.6054, allocations: 121 kB / 0.6381 GB, free: 160 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/0.6056, allocations: 47.98 kB / 0.6381 GB, free: 112 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002805/0.6084, allocations: 1.34 MB / 0.6394 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.81e-07/0.6084, allocations: 192 / 0.6394 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002544/0.6109, allocations: 0.5742 MB / 0.64 GB, free: 14.17 MB / 0.4981 GB 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.000493/0.6115, allocations: 206.8 kB / 0.6402 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004355/0.6158, allocations: 2.648 MB / 0.6428 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.6158, allocations: 0 / 0.6428 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002545/0.6184, allocations: 1.638 MB / 0.6444 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003251/0.6217, allocations: 0.5266 MB / 0.6449 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/0.6333, allocations: 5.802 MB / 0.6505 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002797/0.6361, allocations: 2.194 MB / 0.6527 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008864/0.637, allocations: 167.3 kB / 0.6528 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of SimCode: time 1.122e-06/0.637, allocations: 0 / 0.6528 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of Templates: time 0.4036/1.041, allocations: 85.41 MB / 0.7363 GB, free: 166.8 MB / 0.5606 GB 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/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_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches