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.0008826/0.0008825, allocations: 92.34 kB / 16.65 MB, free: 6.59 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.001099/0.001099, allocations: 184.5 kB / 17.56 MB, free: 6.203 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.358/1.358, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002337/0.0002337, allocations: 15.92 kB / 301.4 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09109/0.09134, allocations: 50.41 MB / 351.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01145/0.1028, allocations: 11.47 MB / 363.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006471/0.1093, allocations: 3.218 MB / 366.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001697/0.1111, allocations: 39.94 kB / 366.6 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.1129, allocations: 0.5748 MB / 367.2 MB, free: 4.098 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002044/0.115, allocations: 0.6245 MB / 367.8 MB, free: 3.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008711/0.1159, allocations: 355.7 kB / 368.1 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002392/0.1183, allocations: 2.272 MB / 370.4 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1888/0.3071, allocations: 0.8427 MB / 371.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002046/0.3092, allocations: 0.7499 MB / 372 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.3105, allocations: 0.8415 MB / 372.8 MB, free: 12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003052/0.3108, allocations: 106.6 kB / 372.9 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000517/0.3114, allocations: 149.7 kB / 373.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003378/0.3117, allocations: 324.1 kB / 373.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001364/0.3131, allocations: 0.9567 MB / 374.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005446/0.3185, allocations: 2.645 MB / 377 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.278e-06/0.3186, allocations: 0 / 377 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.299e-06/0.3186, allocations: 1.438 kB / 377 MB, free: 11.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.212e-05/0.3187, allocations: 1.375 kB / 377 MB, free: 11.23 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.00438/0.3231, allocations: 1.851 MB / 378.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.889e-05/0.3232, allocations: 8.5 kB / 378.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001062/0.3242, allocations: 284.7 kB / 379.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001982/0.3262, allocations: 1.105 MB / 380.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001268/0.3264, allocations: 117.4 kB / 380.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002868/0.3267, allocations: 156.8 kB / 380.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003064/0.3297, allocations: 1.52 MB / 382 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.139e-05/0.3298, allocations: 13.34 kB / 382 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/0.3299, allocations: 64.22 kB / 382.1 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.842e-05/0.33, allocations: 40.66 kB / 382.1 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002255/0.3323, allocations: 1.068 MB / 383.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007154/0.3394, allocations: 6.309 MB / 389.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.3409, allocations: 0.6372 MB / 390.2 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008819/0.3418, allocations: 459 kB / 390.6 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-05/0.3419, allocations: 7.281 kB / 390.6 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.3419, allocations: 50.97 kB / 390.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.585e-06/0.3419, allocations: 0 / 390.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.005079/0.347, allocations: 2.467 MB / 393.1 MB, free: 2.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.3471, allocations: 109.9 kB / 393.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/0.3488, allocations: 1.302 MB / 394.5 MB, free: 2.145 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.3489, allocations: 44.86 kB / 394.6 MB, free: 2.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004483/0.3494, allocations: 0.8521 MB / 395.4 MB, free: 1.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.3495, allocations: 262.2 kB / 395.7 MB, free: 1.121 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.3496, allocations: 90.67 kB / 395.8 MB, free: 1.059 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.862e-05/0.3497, allocations: 355.5 kB / 396.1 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005754/0.3503, allocations: 293.4 kB / 396.4 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007964/0.3511, allocations: 0.7469 MB / 397.2 MB, free: 15.83 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/0.3526, allocations: 1.11 MB / 398.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.3526, allocations: 7.469 kB / 398.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002305/0.355, allocations: 1.301 MB / 399.6 MB, free: 14.36 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.355, allocations: 12.44 kB / 399.6 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.355, allocations: 16.38 kB / 399.6 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005099/0.3555, allocations: 139.8 kB / 399.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007925/0.3563, allocations: 260.6 kB / 400 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003698/0.36, allocations: 4.333 MB / 404.3 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.3611, allocations: 73.91 kB / 404.4 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-05/0.3612, allocations: 54.12 kB / 404.5 MB, free: 9.922 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.0007498/0.362, allocations: 348.9 kB / 404.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001992/0.3622, allocations: 143 kB / 404.9 MB, free: 9.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/0.364, allocations: 0.871 MB / 405.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.364, allocations: 9.531 kB / 405.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.364, allocations: 0 / 405.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.364, allocations: 3.984 kB / 405.8 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003915/0.368, allocations: 2.368 MB / 408.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.368, allocations: 7.938 kB / 408.2 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005947/0.3686, allocations: 129.2 kB / 408.3 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004485/0.369, allocations: 149.6 kB / 408.5 MB, free: 6.828 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.335e-05/0.3691, allocations: 19.98 kB / 408.5 MB, free: 6.809 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00407/0.3732, allocations: 4.456 MB / 412.9 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.3732, allocations: 7.984 kB / 413 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.3758, allocations: 1.358 MB / 414.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005835/0.3764, allocations: 279.4 kB / 414.6 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/0.3765, allocations: 19.98 kB / 414.6 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006672/0.3772, allocations: 39.97 kB / 414.6 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.3774, allocations: 73.67 kB / 414.7 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.195e-05/0.3774, allocations: 20 kB / 414.7 MB, free: 116 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001436/0.3789, allocations: 0.8763 MB / 415.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3789, allocations: 0 / 415.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001446/0.3803, allocations: 328 kB / 415.9 MB, free: 14.91 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.0002832/0.3806, allocations: 147.5 kB / 416.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.3826, allocations: 1.139 MB / 417.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3826, allocations: 0 / 417.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.3837, allocations: 0.7265 MB / 417.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002493/0.3862, allocations: 341.2 kB / 418.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005913/0.3921, allocations: 3.774 MB / 422 MB, free: 8.734 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007647/0.3929, allocations: 1.214 MB / 423.3 MB, free: 7.492 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007185/0.3936, allocations: 175.6 kB / 423.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.3939, allocations: 87.42 kB / 423.5 MB, free: 7.23 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3939, allocations: 0 / 423.5 MB, free: 7.23 MB / 334.1 MB Notification: Performance of Templates: time 0.03163/0.4255, allocations: 16.62 MB / 440.1 MB, free: 6.824 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/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