Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001623/0.001623, allocations: 200 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 226.6 MB / 243.4 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007333/0.0007333, allocations: 95.22 kB / 295.5 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3008/0.3008, allocations: 44.8 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002879/0.0002879, allocations: 4 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3573, allocations: 62.95 MB / 0.5159 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.0093/0.3667, allocations: 10.33 MB / 0.526 GB, free: 29.73 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006945/0.3736, allocations: 3.718 MB / 0.5296 GB, free: 27 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001822/0.3755, allocations: 66.44 kB / 0.5297 GB, free: 26.98 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001824/0.3773, allocations: 0.6931 MB / 0.5303 GB, free: 26.63 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002657/0.38, allocations: 0.8064 MB / 0.5311 GB, free: 26.15 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.3811, allocations: 339.8 kB / 0.5314 GB, free: 25.96 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004272/0.3853, allocations: 3.363 MB / 0.5347 GB, free: 24.38 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002627/0.388, allocations: 2.553 MB / 0.5372 GB, free: 23.25 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001901/0.3899, allocations: 1.13 MB / 0.5383 GB, free: 22.78 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001965/0.3919, allocations: 1.579 MB / 0.5399 GB, free: 22.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000335/0.3922, allocations: 172.6 kB / 0.54 GB, free: 22.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008097/0.393, allocations: 291.2 kB / 0.5403 GB, free: 22.11 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008586/0.3939, allocations: 0.9067 MB / 0.5412 GB, free: 21.75 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001636/0.3956, allocations: 1.489 MB / 0.5426 GB, free: 20.81 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006174/0.4017, allocations: 4.48 MB / 0.547 GB, free: 19.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.4018, allocations: 0 / 0.547 GB, free: 19.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4018, allocations: 0 / 0.547 GB, free: 19.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000211/0.402, allocations: 1 kB / 0.547 GB, free: 19.61 MB / 378.7 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.008375/0.4104, allocations: 3.231 MB / 0.5502 GB, free: 17.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.4105, allocations: 13.31 kB / 0.5502 GB, free: 17.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001612/0.4121, allocations: 404.4 kB / 0.5506 GB, free: 17.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003894/0.416, allocations: 2.023 MB / 0.5526 GB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002393/0.4163, allocations: 230.3 kB / 0.5528 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004742/0.4167, allocations: 280 kB / 0.553 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007848/0.4246, allocations: 3.717 MB / 0.5567 GB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-05/0.4247, allocations: 11.59 kB / 0.5567 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002907/0.425, allocations: 116.1 kB / 0.5568 GB, free: 13.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000203/0.4252, allocations: 140.2 kB / 0.5569 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00645/0.4317, allocations: 3.164 MB / 0.56 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01716/0.4488, allocations: 11.61 MB / 0.5714 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003752/0.4526, allocations: 2.176 MB / 0.5735 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002141/0.4548, allocations: 1.242 MB / 0.5747 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004216/0.4553, allocations: 207.5 kB / 0.5749 GB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.042e-05/0.4553, allocations: 55.81 kB / 0.5749 GB, free: 12.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 6.151e-06/0.4553, allocations: 0 / 0.5749 GB, free: 12.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=154): time 0.01859/0.4739, allocations: 7.903 MB / 0.5827 GB, free: 4.184 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/0.474, allocations: 64.72 kB / 0.5827 GB, free: 4.109 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004136/0.4782, allocations: 1.933 MB / 0.5846 GB, free: 2.133 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003384/0.4786, allocations: 53.7 kB / 0.5847 GB, free: 2.074 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/0.4799, allocations: 1.366 MB / 0.586 GB, free: 0.6914 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006401/0.4805, allocations: 0.5237 MB / 0.5865 GB, free: 164 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.4806, allocations: 36 kB / 0.5865 GB, free: 128 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002335/0.4809, allocations: 377.9 kB / 0.5869 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/0.4826, allocations: 0.8823 MB / 0.5878 GB, free: 14.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/0.4844, allocations: 1.34 MB / 0.5891 GB, free: 13.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003373/0.4878, allocations: 2.385 MB / 0.5914 GB, free: 10.76 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.4879, allocations: 8 kB / 0.5914 GB, free: 10.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005287/0.4931, allocations: 2.92 MB / 0.5943 GB, free: 7.789 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.4932, allocations: 12 kB / 0.5943 GB, free: 7.777 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.411e-05/0.4932, allocations: 12 kB / 0.5943 GB, free: 7.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009038/0.4941, allocations: 399.1 kB / 0.5947 GB, free: 7.363 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/0.4958, allocations: 447.3 kB / 0.5951 GB, free: 6.926 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005963/0.5018, allocations: 6.194 MB / 0.6011 GB, free: 344 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002002/0.5038, allocations: 127.8 kB / 0.6013 GB, free: 216 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/0.5039, allocations: 75.98 kB / 0.6013 GB, free: 140 kB / 410.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002147/0.5061, allocations: 0.9032 MB / 0.6022 GB, free: 15.22 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004905/0.5066, allocations: 205.6 kB / 0.6024 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0051/0.5117, allocations: 2.918 MB / 0.6053 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.5117, allocations: 12 kB / 0.6053 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.5117, allocations: 8 kB / 0.6053 GB, free: 12.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/0.5118, allocations: 7.969 kB / 0.6053 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/0.5224, allocations: 6.15 MB / 0.6113 GB, free: 5.777 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.5225, allocations: 11.94 kB / 0.6113 GB, free: 5.766 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.5235, allocations: 243.6 kB / 0.6115 GB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/0.5256, allocations: 0.8003 MB / 0.6123 GB, free: 4.719 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001396/0.5257, allocations: 47.97 kB / 0.6124 GB, free: 4.672 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/0.538, allocations: 9.832 MB / 0.622 GB, free: 10.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.5381, allocations: 7.938 kB / 0.622 GB, free: 10.42 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007359/0.5454, allocations: 4.183 MB / 0.6261 GB, free: 6.16 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001642/0.5471, allocations: 498.3 kB / 0.6265 GB, free: 5.652 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007486/0.5479, allocations: 39.98 kB / 0.6266 GB, free: 5.613 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/0.5495, allocations: 99.83 kB / 0.6267 GB, free: 5.516 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/0.5498, allocations: 121.1 kB / 0.6268 GB, free: 5.398 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.55, allocations: 47.98 kB / 0.6268 GB, free: 5.352 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00287/0.5528, allocations: 1.329 MB / 0.6281 GB, free: 4 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.353e-06/0.5528, allocations: 112 / 0.6281 GB, free: 4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002938/0.5558, allocations: 0.5819 MB / 0.6287 GB, free: 3.418 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(5,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005288/0.5563, allocations: 194.9 kB / 0.6289 GB, free: 3.215 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004479/0.5608, allocations: 2.624 MB / 0.6314 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.5608, allocations: 0 / 0.6314 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002656/0.5635, allocations: 1.639 MB / 0.633 GB, free: 14.86 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004761/0.5683, allocations: 0.5001 MB / 0.6335 GB, free: 14.36 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.5824, allocations: 6.902 MB / 0.6403 GB, free: 7.379 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003455/0.5859, allocations: 2.19 MB / 0.6424 GB, free: 5.16 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/0.587, allocations: 167.4 kB / 0.6426 GB, free: 4.996 MB / 458.7 MB Notification: Performance of SimCode: time 1.062e-06/0.587, allocations: 0 / 0.6426 GB, free: 4.996 MB / 458.7 MB Notification: Performance of Templates: time 0.3675/0.9545, allocations: 84.73 MB / 0.7253 GB, free: 109.3 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches