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.001069/0.001069, allocations: 97.48 kB / 17 MB, free: 6.418 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.001182/0.001182, allocations: 189.4 kB / 17.89 MB, free: 5.945 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.481/1.481, allocations: 223.2 MB / 241.9 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2524/0.2524, allocations: 44.24 MB / 337.3 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004842/0.0004845, allocations: 11.94 kB / 409.7 MB, free: 27.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1588, allocations: 61.93 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01327/0.1721, allocations: 10.3 MB / 481.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.1823, allocations: 3.674 MB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001958/0.1843, allocations: 63.69 kB / 485.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002091/0.1864, allocations: 0.6794 MB / 486.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0026/0.189, allocations: 0.8002 MB / 487.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.1901, allocations: 335.5 kB / 487.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003969/0.1941, allocations: 3.304 MB / 490.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002804/0.1969, allocations: 2.112 MB / 492.8 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00191/0.1988, allocations: 1.128 MB / 494 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002633/0.2015, allocations: 1.588 MB / 495.6 MB, free: 5.602 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005125/0.202, allocations: 168 kB / 495.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009763/0.203, allocations: 247.9 kB / 496 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001187/0.2042, allocations: 0.919 MB / 496.9 MB, free: 4.273 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001303/0.2055, allocations: 0.6289 MB / 497.5 MB, free: 3.637 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005267/0.2108, allocations: 4.461 MB / 0.4902 GB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.2108, allocations: 0 / 0.4902 GB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2108, allocations: 4 kB / 0.4902 GB, free: 15.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002212/0.2111, allocations: 0 / 0.4902 GB, free: 15.16 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.007397/0.2185, allocations: 3.266 MB / 0.4934 GB, free: 11.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2185, allocations: 8.031 kB / 0.4934 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/0.22, allocations: 395.5 kB / 0.4938 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003882/0.2239, allocations: 1.962 MB / 0.4957 GB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002158/0.2241, allocations: 225.6 kB / 0.4959 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000474/0.2246, allocations: 279.9 kB / 0.4962 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007008/0.2316, allocations: 3.723 MB / 0.4998 GB, free: 5.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.34e-05/0.2317, allocations: 7.906 kB / 0.4998 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002475/0.232, allocations: 112 kB / 0.4999 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001584/0.2321, allocations: 141.4 kB / 0.5001 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005856/0.238, allocations: 3.164 MB / 0.5032 GB, free: 1.691 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2918/0.5298, allocations: 11.6 MB / 0.5145 GB, free: 41.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004051/0.5339, allocations: 2.176 MB / 0.5166 GB, free: 39.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002382/0.5363, allocations: 1.239 MB / 0.5178 GB, free: 39.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003643/0.5367, allocations: 211.3 kB / 0.518 GB, free: 39.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.959e-05/0.5368, allocations: 53.77 kB / 0.5181 GB, free: 39.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 4.559e-06/0.5368, allocations: 0 / 0.5181 GB, free: 39.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.02823/0.565, allocations: 7.875 MB / 0.5258 GB, free: 35.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.5651, allocations: 72.42 kB / 0.5258 GB, free: 35.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004474/0.5696, allocations: 1.932 MB / 0.5277 GB, free: 34.19 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00035/0.57, allocations: 53.64 kB / 0.5278 GB, free: 34.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/0.5714, allocations: 1.362 MB / 0.5291 GB, free: 32.94 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008633/0.5723, allocations: 0.5214 MB / 0.5296 GB, free: 32.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.5725, allocations: 35.59 kB / 0.5296 GB, free: 32.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.5727, allocations: 378.8 kB / 0.53 GB, free: 32.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002309/0.575, allocations: 0.8819 MB / 0.5309 GB, free: 31.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002185/0.5772, allocations: 1.345 MB / 0.5322 GB, free: 30.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/0.5794, allocations: 1.096 MB / 0.5333 GB, free: 30.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.5794, allocations: 3.625 kB / 0.5333 GB, free: 30.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.00662/0.5861, allocations: 2.918 MB / 0.5361 GB, free: 27.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.328e-05/0.5861, allocations: 18.45 kB / 0.5361 GB, free: 27.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.962e-05/0.5862, allocations: 16.41 kB / 0.5361 GB, free: 27.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/0.5873, allocations: 388.8 kB / 0.5365 GB, free: 27.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002307/0.5896, allocations: 455.2 kB / 0.5369 GB, free: 26.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006358/0.596, allocations: 6.187 MB / 0.543 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002765/0.5988, allocations: 123.9 kB / 0.5431 GB, free: 20.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00028/0.5991, allocations: 75.98 kB / 0.5432 GB, free: 20.15 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 (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.002524/0.6016, allocations: 0.8993 MB / 0.5441 GB, free: 19.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007584/0.6024, allocations: 209.5 kB / 0.5443 GB, free: 19.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005619/0.608, allocations: 2.915 MB / 0.5471 GB, free: 16.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.845e-05/0.6081, allocations: 16 kB / 0.5471 GB, free: 16.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/0.6081, allocations: 12.11 kB / 0.5471 GB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.015e-05/0.6081, allocations: 11.91 kB / 0.5471 GB, free: 16.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/0.6225, allocations: 6.147 MB / 0.5531 GB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.6226, allocations: 4 kB / 0.5531 GB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001575/0.6241, allocations: 239.6 kB / 0.5534 GB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00287/0.627, allocations: 0.8086 MB / 0.5542 GB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001826/0.6272, allocations: 39.98 kB / 0.5542 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01425/0.6415, allocations: 9.835 MB / 0.5638 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.185e-06/0.6416, allocations: 12 kB / 0.5638 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/0.6528, allocations: 4.166 MB / 0.5679 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00182/0.6546, allocations: 0.4906 MB / 0.5684 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004167/0.6551, allocations: 44.03 kB / 0.5684 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/0.6566, allocations: 99.88 kB / 0.5685 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004376/0.6571, allocations: 121.1 kB / 0.5686 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001664/0.6573, allocations: 55.94 kB / 0.5687 GB, free: 9.406 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003094/0.6604, allocations: 1.321 MB / 0.57 GB, free: 8.062 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6604, allocations: 0 / 0.57 GB, free: 8.062 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003452/0.6638, allocations: 0.5787 MB / 0.5705 GB, free: 7.488 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 (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.000458/0.6643, allocations: 158.9 kB / 0.5707 GB, free: 7.324 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005589/0.6699, allocations: 2.636 MB / 0.5733 GB, free: 4.629 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.67, allocations: 0 / 0.5733 GB, free: 4.629 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002708/0.6727, allocations: 1.637 MB / 0.5749 GB, free: 2.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003496/0.6762, allocations: 0.5 MB / 0.5753 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.6895, allocations: 6.851 MB / 0.582 GB, free: 11.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00326/0.6928, allocations: 2.209 MB / 0.5842 GB, free: 9.293 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002113/0.6949, allocations: 465.7 kB / 0.5846 GB, free: 8.836 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007924/0.6958, allocations: 151.4 kB / 0.5848 GB, free: 8.688 MB / 414.1 MB Notification: Performance of SimCode: time 1.323e-06/0.6958, allocations: 0 / 0.5848 GB, free: 8.688 MB / 414.1 MB Notification: Performance of Templates: time 0.05976/0.7555, allocations: 30.3 MB / 0.6144 GB, free: 10.64 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