Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007207/0.0007207, allocations: 94.02 kB / 17.31 MB, free: 6.535 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.0008363/0.0008363, allocations: 175.7 kB / 18.21 MB, free: 5.684 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.151/1.151, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000209/0.000209, allocations: 8.562 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07175/0.07197, allocations: 50.42 MB / 352.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01152/0.08351, allocations: 13.14 MB / 365.6 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006735/0.09027, allocations: 4.94 MB / 370.6 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001541/0.09183, allocations: 55.81 kB / 370.6 MB, free: 1.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001716/0.09355, allocations: 0.7692 MB / 371.4 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001104/0.09467, allocations: 464.7 kB / 371.9 MB, free: 252 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1221/0.2168, allocations: 458.2 kB / 372.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002489/0.2193, allocations: 2.019 MB / 374.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.2207, allocations: 0.9824 MB / 375.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009621/0.2217, allocations: 0.6081 MB / 375.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.2227, allocations: 0.7125 MB / 376.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002873/0.223, allocations: 92.69 kB / 376.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005028/0.2236, allocations: 131.5 kB / 376.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.2238, allocations: 289.1 kB / 377.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006485/0.2244, allocations: 0.84 MB / 378 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001834/0.2263, allocations: 2.181 MB / 380.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2263, allocations: 0 / 380.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2263, allocations: 1.094 kB / 380.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.627e-05/0.2263, allocations: 4 kB / 380.2 MB, free: 9.461 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.002395/0.2287, allocations: 1.734 MB / 381.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.2287, allocations: 10.53 kB / 381.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005861/0.2293, allocations: 248 kB / 382.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.2305, allocations: 1.016 MB / 383.2 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.562e-05/0.2306, allocations: 114.9 kB / 383.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/0.2307, allocations: 153.9 kB / 383.4 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002026/0.2328, allocations: 1.44 MB / 384.9 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.625e-05/0.2328, allocations: 11.06 kB / 384.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.2329, allocations: 63.69 kB / 384.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.594e-05/0.2329, allocations: 36.5 kB / 385 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.2345, allocations: 0.9774 MB / 385.9 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005503/0.24, allocations: 6.177 MB / 392.1 MB, free: 2.824 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008733/0.2409, allocations: 0.6622 MB / 392.8 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003653/0.2413, allocations: 244.7 kB / 393 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.2413, allocations: 5.844 kB / 393 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.63e-05/0.2413, allocations: 46 kB / 393.1 MB, free: 2.223 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 1.593e-06/0.2413, allocations: 0 / 393.1 MB, free: 2.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.002348/0.2437, allocations: 1.761 MB / 394.8 MB, free: 1.086 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/0.2437, allocations: 85.52 kB / 394.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.2449, allocations: 1.123 MB / 396 MB, free: 368 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.937e-05/0.245, allocations: 36.45 kB / 396.1 MB, free: 328 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004268/0.2454, allocations: 0.8048 MB / 396.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.2455, allocations: 198.4 kB / 397.1 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.877e-05/0.2456, allocations: 83.92 kB / 397.2 MB, free: 15.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.2458, allocations: 342.2 kB / 397.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004249/0.2462, allocations: 253.9 kB / 397.7 MB, free: 14.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006449/0.2468, allocations: 0.6328 MB / 398.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.248, allocations: 0.9392 MB / 399.3 MB, free: 13.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.248, allocations: 2.906 kB / 399.3 MB, free: 13.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001405/0.2494, allocations: 1.021 MB / 400.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002446/0.2497, allocations: 478.8 kB / 400.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.2497, allocations: 14.09 kB / 400.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001188/0.2498, allocations: 42.59 kB / 400.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005947/0.2504, allocations: 232.2 kB / 401.1 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008107/0.2512, allocations: 1.306 MB / 402.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005618/0.2518, allocations: 54.92 kB / 402.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.745e-05/0.2519, allocations: 45.78 kB / 402.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.661e-06/0.2519, allocations: 7.125 kB / 402.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001012/0.2529, allocations: 0.8199 MB / 403.3 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.2529, allocations: 16.81 kB / 403.3 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.063e-05/0.253, allocations: 41.91 kB / 403.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000543/0.2535, allocations: 215.1 kB / 403.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007321/0.2543, allocations: 1.303 MB / 404.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000474/0.2548, allocations: 34.28 kB / 404.9 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.434e-05/0.2548, allocations: 47.38 kB / 405 MB, free: 9.281 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000449/0.2553, allocations: 411.7 kB / 405.4 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.2554, allocations: 120.6 kB / 405.5 MB, free: 8.883 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009275/0.2563, allocations: 0.5868 MB / 406.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.2563, allocations: 5.531 kB / 406.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.2564, allocations: 0 / 406.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2564, allocations: 0 / 406.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002364/0.2587, allocations: 1.888 MB / 408 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.2587, allocations: 3.938 kB / 408 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004443/0.2592, allocations: 116.1 kB / 408.1 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-05/0.2593, allocations: 24.84 kB / 408.1 MB, free: 6.535 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.914e-05/0.2593, allocations: 12 kB / 408.1 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007325/0.2601, allocations: 1.268 MB / 409.4 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/0.2601, allocations: 11.95 kB / 409.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.2614, allocations: 0.9461 MB / 410.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002774/0.2616, allocations: 247.5 kB / 410.6 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.2618, allocations: 12 kB / 410.6 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000454/0.2622, allocations: 39.97 kB / 410.6 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.583e-05/0.2623, allocations: 44.33 kB / 410.7 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-05/0.2623, allocations: 16 kB / 410.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000892/0.2632, allocations: 0.7555 MB / 411.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2632, allocations: 0 / 411.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001165/0.2644, allocations: 468 kB / 411.9 MB, free: 2.531 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,loadTorque.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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001972/0.2646, allocations: 144.4 kB / 412 MB, free: 2.383 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001725/0.2663, allocations: 1.265 MB / 413.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2664, allocations: 4 kB / 413.3 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004796/0.2668, allocations: 363.4 kB / 413.7 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.2682, allocations: 267 kB / 413.9 MB, free: 484 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003662/0.2719, allocations: 3.297 MB / 417.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006517/0.2726, allocations: 1.165 MB / 418.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.2728, allocations: 83.42 kB / 418.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2728, allocations: 0 / 418.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of Templates: time 0.02214/0.2949, allocations: 22.71 MB / 441.2 MB, free: 5.195 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches