Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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) 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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 92.41 kB / 16.3 MB, free: 5.996 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.0009273/0.0009273, allocations: 183 kB / 17.2 MB, free: 5.91 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.359/1.359, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003405, allocations: 4.609 kB / 300.7 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1391, allocations: 50.42 MB / 351.2 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01618/0.1554, allocations: 9.21 MB / 360.4 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008691/0.1641, allocations: 3.465 MB / 363.8 MB, free: 15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.1657, allocations: 59.69 kB / 363.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.1674, allocations: 0.7075 MB / 364.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002074/0.1695, allocations: 0.8217 MB / 365.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007331/0.1702, allocations: 283.6 kB / 365.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002872/0.1731, allocations: 2.379 MB / 368.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002034/0.1752, allocations: 1.938 MB / 370 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001319/0.1765, allocations: 1.14 MB / 371.1 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001446/0.178, allocations: 1.369 MB / 372.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002656/0.1782, allocations: 180 kB / 372.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005343/0.1788, allocations: 243.9 kB / 372.9 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007805/0.1796, allocations: 0.8646 MB / 373.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005241/0.1801, allocations: 0.6679 MB / 374.5 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003259/0.1834, allocations: 4.375 MB / 378.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1834, allocations: 0 / 378.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.1834, allocations: 0 / 378.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.727e-05/0.1835, allocations: 0 / 378.8 MB, free: 15.91 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.005586/0.1891, allocations: 3.256 MB / 382.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.1891, allocations: 8.031 kB / 382.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000917/0.19, allocations: 391.7 kB / 382.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003387/0.1934, allocations: 1.942 MB / 384.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.1936, allocations: 213.7 kB / 384.6 MB, free: 9.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003813/0.194, allocations: 283.9 kB / 384.9 MB, free: 9.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006347/0.2003, allocations: 3.818 MB / 388.7 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.987e-05/0.2004, allocations: 4 kB / 388.7 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002387/0.2007, allocations: 123.9 kB / 388.9 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/0.2008, allocations: 121.5 kB / 389 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004951/0.2058, allocations: 3.238 MB / 392.2 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0172/0.223, allocations: 11.94 MB / 404.2 MB, free: 6.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003202/0.2262, allocations: 3.648 MB / 407.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000258/0.2265, allocations: 126.4 kB / 407.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.2265, allocations: 51.81 kB / 408 MB, free: 1.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 2.966e-06/0.2265, allocations: 0 / 408 MB, free: 1.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01389/0.2404, allocations: 7.47 MB / 415.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.2405, allocations: 68.72 kB / 415.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00285/0.2434, allocations: 2.025 MB / 417.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.851e-05/0.2435, allocations: 53.7 kB / 417.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008897/0.2444, allocations: 1.362 MB / 419 MB, free: 6.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003483/0.2447, allocations: 0.5122 MB / 419.5 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.634e-05/0.2448, allocations: 40 kB / 419.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.245, allocations: 373.9 kB / 419.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.2462, allocations: 0.8705 MB / 420.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001492/0.2477, allocations: 1.36 MB / 422.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001853/0.2496, allocations: 1.095 MB / 423.2 MB, free: 2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/0.2496, allocations: 11.94 kB / 423.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.2151/0.4647, allocations: 3.247 MB / 426.5 MB, free: 60.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/0.4648, allocations: 16.05 kB / 426.5 MB, free: 60.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.16e-05/0.4648, allocations: 15 kB / 426.5 MB, free: 60.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002204/0.467, allocations: 0.8353 MB / 427.3 MB, free: 60.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/0.4684, allocations: 351 kB / 427.7 MB, free: 60.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01499/0.4834, allocations: 18.91 MB / 446.6 MB, free: 46.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.4854, allocations: 100.1 kB / 446.7 MB, free: 46.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/0.4855, allocations: 78.77 kB / 446.8 MB, free: 46.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 186 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001883/0.4874, allocations: 0.9401 MB / 447.7 MB, free: 46.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003527/0.4878, allocations: 214.2 kB / 447.9 MB, free: 46.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004339/0.4921, allocations: 2.612 MB / 450.5 MB, free: 45.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.4922, allocations: 12.72 kB / 450.5 MB, free: 45.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.4922, allocations: 13.58 kB / 450.5 MB, free: 45.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.4922, allocations: 8.531 kB / 450.5 MB, free: 45.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008438/0.5006, allocations: 5.869 MB / 456.4 MB, free: 42.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/0.5007, allocations: 8.516 kB / 456.4 MB, free: 42.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00076/0.5014, allocations: 202.2 kB / 456.6 MB, free: 42.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001571/0.503, allocations: 0.7224 MB / 457.3 MB, free: 42.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.881e-05/0.5031, allocations: 35.64 kB / 457.4 MB, free: 42.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/0.5149, allocations: 16.8 MB / 474.2 MB, free: 26.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.515, allocations: 8.062 kB / 474.2 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007656/0.5227, allocations: 4.039 MB / 478.2 MB, free: 22.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001761/0.5245, allocations: 482.4 kB / 478.7 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003881/0.5249, allocations: 35.95 kB / 478.7 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001569/0.5265, allocations: 112.9 kB / 478.8 MB, free: 21.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004969/0.527, allocations: 148.5 kB / 479 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001633/0.5271, allocations: 51.94 kB / 479 MB, free: 21.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00276/0.5299, allocations: 1.369 MB / 480.4 MB, free: 20.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5299, allocations: 0 / 480.4 MB, free: 20.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00381/0.5337, allocations: 0.6523 MB / 481.1 MB, free: 19.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 111 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004322/0.5342, allocations: 176.5 kB / 481.2 MB, free: 19.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006297/0.5405, allocations: 3.446 MB / 484.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/0.5405, allocations: 0 / 484.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003692/0.5443, allocations: 2.194 MB / 486.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004681/0.549, allocations: 0.6194 MB / 487.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.5636, allocations: 6.715 MB / 494.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003486/0.5672, allocations: 2.344 MB / 496.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.003311/0.5705, allocations: 0.4987 MB / 497.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008203/0.5714, allocations: 135.4 kB / 497.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5714, allocations: 0 / 497.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of Templates: time 0.09663/0.668, allocations: 34.94 MB / 0.5197 GB, free: 0.6016 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches