Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 103 kB / 17.16 MB, free: 6.32 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.002192/0.002192, allocations: 190.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.585/2.585, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 51.14 kB / 300.6 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.136, allocations: 49.45 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0193/0.1554, allocations: 12.05 MB / 362.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009216/0.1647, allocations: 3.253 MB / 365.4 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002693/0.1675, allocations: 35.94 kB / 365.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002871/0.1704, allocations: 0.5748 MB / 366 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004103/0.1746, allocations: 0.6244 MB / 366.6 MB, free: 4.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001677/0.1763, allocations: 355.8 kB / 366.9 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004166/0.1805, allocations: 2.272 MB / 369.2 MB, free: 1.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.1826, allocations: 0.8622 MB / 370.1 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3442/0.5268, allocations: 0.8018 MB / 370.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003783/0.5306, allocations: 0.9208 MB / 371.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001819/0.5325, allocations: 140.8 kB / 371.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002478/0.535, allocations: 185.3 kB / 372.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001564/0.5366, allocations: 373.8 kB / 372.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005176/0.5419, allocations: 0.9875 MB / 373.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008463/0.5504, allocations: 2.275 MB / 375.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.523e-05/0.5505, allocations: 0 / 375.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.5505, allocations: 1.844 kB / 375.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001899/0.5507, allocations: 1.531 kB / 375.8 MB, free: 11.52 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.01338/0.5641, allocations: 2.16 MB / 377.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001042/0.5643, allocations: 9.656 kB / 377.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003039/0.5674, allocations: 279.1 kB / 378.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005489/0.5729, allocations: 1.108 MB / 379.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003738/0.5733, allocations: 116.4 kB / 379.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001165/0.5745, allocations: 161.4 kB / 379.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008249/0.5828, allocations: 1.509 MB / 381.1 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000217/0.5831, allocations: 10.72 kB / 381.1 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005959/0.5837, allocations: 62.97 kB / 381.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.865e-05/0.5838, allocations: 38.72 kB / 381.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005394/0.5892, allocations: 1.047 MB / 382.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01783/0.6071, allocations: 6.3 MB / 388.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.6097, allocations: 0.6134 MB / 389.2 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.6112, allocations: 450.9 kB / 389.6 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.721e-05/0.6113, allocations: 8.188 kB / 389.6 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.6114, allocations: 51 kB / 389.7 MB, free: 4.715 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 5.01e-06/0.6114, allocations: 0 / 389.7 MB, free: 4.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.009297/0.6207, allocations: 2.355 MB / 392 MB, free: 3.207 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.6209, allocations: 111.3 kB / 392.1 MB, free: 3.078 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004676/0.6256, allocations: 1.305 MB / 393.4 MB, free: 2.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001759/0.6258, allocations: 39.52 kB / 393.5 MB, free: 2.312 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008069/0.6266, allocations: 0.8498 MB / 394.3 MB, free: 1.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003202/0.6269, allocations: 271.3 kB / 394.6 MB, free: 1.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004594/0.6274, allocations: 202.7 kB / 394.8 MB, free: 1.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.6275, allocations: 357.9 kB / 395.1 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009653/0.6285, allocations: 289.5 kB / 395.4 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.6301, allocations: 0.7336 MB / 396.1 MB, free: 15.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002864/0.6329, allocations: 1.087 MB / 397.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-05/0.633, allocations: 8.125 kB / 397.2 MB, free: 15.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.005035/0.6381, allocations: 1.26 MB / 398.5 MB, free: 14.51 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.6381, allocations: 9.812 kB / 398.5 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.688e-05/0.6382, allocations: 13.75 kB / 398.5 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000806/0.639, allocations: 139.2 kB / 398.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.6402, allocations: 252.5 kB / 398.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006055/0.6463, allocations: 4.29 MB / 403.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002277/0.6486, allocations: 59.03 kB / 403.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003058/0.649, allocations: 52.09 kB / 403.3 MB, free: 10.09 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.001584/0.6506, allocations: 353.2 kB / 403.6 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007879/0.6514, allocations: 135.4 kB / 403.8 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003291/0.6547, allocations: 0.8351 MB / 404.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.579e-05/0.6547, allocations: 7.344 kB / 404.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.6547, allocations: 1.5 kB / 404.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.715e-05/0.6548, allocations: 3.984 kB / 404.6 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008197/0.663, allocations: 2.325 MB / 406.9 MB, free: 7.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.761e-05/0.6631, allocations: 6.906 kB / 407 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008158/0.6639, allocations: 130.6 kB / 407.1 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006999/0.6646, allocations: 138.7 kB / 407.2 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.934e-05/0.6647, allocations: 18.67 kB / 407.2 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006287/0.671, allocations: 4.395 MB / 411.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.325e-06/0.6711, allocations: 4 kB / 411.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004526/0.6756, allocations: 1.302 MB / 412.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/0.6773, allocations: 283.4 kB / 413.2 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008645/0.6782, allocations: 19.98 kB / 413.2 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/0.6796, allocations: 39.95 kB / 413.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/0.6799, allocations: 67.05 kB / 413.3 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.006e-05/0.68, allocations: 24.31 kB / 413.4 MB, free: 1.184 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002863/0.6828, allocations: 0.8742 MB / 414.2 MB, free: 316 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.435e-06/0.6829, allocations: 2.625 kB / 414.2 MB, free: 316 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.002972/0.6858, allocations: 332 kB / 414.6 MB, free: 15.98 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004861/0.6863, allocations: 140.5 kB / 414.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003375/0.6897, allocations: 1.119 MB / 415.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/0.6898, allocations: 4 kB / 415.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.6913, allocations: 0.7061 MB / 416.5 MB, free: 14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004033/0.6954, allocations: 350.5 kB / 416.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.7062, allocations: 3.619 MB / 420.5 MB, free: 9.988 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001655/0.7079, allocations: 1.214 MB / 421.7 MB, free: 8.738 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005587/0.7084, allocations: 95.42 kB / 421.8 MB, free: 8.645 MB / 334.1 MB Notification: Performance of SimCode: time 1.363e-06/0.7085, allocations: 0 / 421.8 MB, free: 8.645 MB / 334.1 MB Notification: Performance of Templates: time 0.07605/0.7845, allocations: 40.88 MB / 462.7 MB, free: 15.86 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches