Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001185/0.001185, allocations: 94.66 kB / 16.95 MB, free: 6.113 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.001932/0.001932, allocations: 171.3 kB / 17.83 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.912/1.912, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006089/0.0006093, allocations: 16 kB / 280.8 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1545, allocations: 47.59 MB / 328.4 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01751/0.1721, allocations: 12.3 MB / 340.7 MB, free: 7.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01357/0.1857, allocations: 4.83 MB / 345.5 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004544/0.1903, allocations: 55.75 kB / 345.6 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003829/0.1942, allocations: 0.7264 MB / 346.3 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003437/0.1977, allocations: 436.7 kB / 346.7 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.1996, allocations: 315.5 kB / 347 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004399/0.204, allocations: 1.928 MB / 348.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002451/0.2065, allocations: 0.76 MB / 349.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001806/0.2083, allocations: 0.5871 MB / 350.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00174/0.2101, allocations: 0.6918 MB / 351 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005645/0.2106, allocations: 96 kB / 351.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009491/0.2116, allocations: 128 kB / 351.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004927/0.2121, allocations: 282.6 kB / 351.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001035/0.2132, allocations: 360.8 kB / 351.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00331/0.2165, allocations: 2.177 MB / 354 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.2165, allocations: 0 / 354 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.2165, allocations: 0 / 354 MB, free: 10.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001345/0.2167, allocations: 0 / 354 MB, free: 10.29 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.00511/0.2218, allocations: 1.759 MB / 355.8 MB, free: 8.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.422e-05/0.2219, allocations: 12.03 kB / 355.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001449/0.2233, allocations: 245.6 kB / 356 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002985/0.2263, allocations: 0.9965 MB / 357 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.2264, allocations: 115 kB / 357.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003389/0.2268, allocations: 155.9 kB / 357.3 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00336/0.2302, allocations: 1.419 MB / 358.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.021e-05/0.2302, allocations: 7.938 kB / 358.7 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/0.2304, allocations: 60 kB / 358.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.532e-05/0.2304, allocations: 36 kB / 358.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002107/0.2325, allocations: 0.9673 MB / 359.8 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009854/0.2424, allocations: 6.179 MB / 366 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.2437, allocations: 0.6599 MB / 366.6 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004636/0.2442, allocations: 246 kB / 366.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.475e-05/0.2442, allocations: 16.44 kB / 366.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.2443, allocations: 39 kB / 366.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=51): time 3.456e-06/0.2443, allocations: 0 / 366.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.004477/0.2488, allocations: 1.758 MB / 368.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.339e-05/0.2489, allocations: 85.55 kB / 368.7 MB, free: 10.94 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002341/0.2512, allocations: 1.124 MB / 369.9 MB, free: 9.801 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-05/0.2513, allocations: 41.7 kB / 369.9 MB, free: 9.754 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007314/0.2521, allocations: 0.8014 MB / 370.7 MB, free: 8.941 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.2523, allocations: 201.2 kB / 370.9 MB, free: 8.742 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.2523, allocations: 20 kB / 370.9 MB, free: 8.723 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2525, allocations: 345.9 kB / 371.3 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000505/0.253, allocations: 241.9 kB / 371.5 MB, free: 8.145 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008145/0.2539, allocations: 0.6329 MB / 372.1 MB, free: 7.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006869/0.2546, allocations: 342 kB / 372.5 MB, free: 6.996 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/0.2546, allocations: 4 kB / 372.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00201/0.2566, allocations: 1.006 MB / 373.5 MB, free: 5.973 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004327/0.257, allocations: 489.5 kB / 374 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.857e-05/0.2571, allocations: 12 kB / 374 MB, free: 5.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002161/0.2573, allocations: 36.84 kB / 374 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007649/0.2581, allocations: 231.6 kB / 374.2 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/0.2592, allocations: 1.296 MB / 375.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009535/0.2602, allocations: 56.05 kB / 375.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.067e-05/0.2603, allocations: 44 kB / 375.6 MB, free: 3.508 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.2603, allocations: 4 kB / 375.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001432/0.2617, allocations: 0.8188 MB / 376.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.101e-05/0.2618, allocations: 15.98 kB / 376.5 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001099/0.2619, allocations: 40.8 kB / 376.5 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006638/0.2626, allocations: 219.7 kB / 376.7 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.2636, allocations: 1.292 MB / 378 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009649/0.2646, allocations: 35.91 kB / 378 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.36e-05/0.2647, allocations: 51.94 kB / 378.1 MB, free: 0.8984 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000961/0.2657, allocations: 424.8 kB / 378.5 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003494/0.266, allocations: 118.5 kB / 378.6 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2442/0.5102, allocations: 0.5708 MB / 379.2 MB, free: 50.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/0.5103, allocations: 9.062 kB / 379.2 MB, free: 50.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5103, allocations: 2.172 kB / 379.2 MB, free: 50.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.5103, allocations: 2.297 kB / 379.2 MB, free: 50.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004103/0.5144, allocations: 1.885 MB / 381.1 MB, free: 50.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.5145, allocations: 2.25 kB / 381.1 MB, free: 50.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005784/0.5151, allocations: 111.1 kB / 381.2 MB, free: 50.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001309/0.5152, allocations: 23.78 kB / 381.2 MB, free: 50 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.921e-05/0.5152, allocations: 17.89 kB / 381.2 MB, free: 50 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008722/0.5161, allocations: 1.281 MB / 382.5 MB, free: 48.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.5161, allocations: 1.875 kB / 382.5 MB, free: 48.77 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/0.5178, allocations: 0.9346 MB / 383.5 MB, free: 48.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004711/0.5183, allocations: 245.9 kB / 383.7 MB, free: 48.45 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.5184, allocations: 12.33 kB / 383.7 MB, free: 48.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004532/0.5189, allocations: 47.3 kB / 383.8 MB, free: 48.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.612e-05/0.519, allocations: 36.89 kB / 383.8 MB, free: 48.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/0.519, allocations: 16.55 kB / 383.8 MB, free: 48.42 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001232/0.5203, allocations: 0.7491 MB / 384.6 MB, free: 48.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5203, allocations: 0 / 384.6 MB, free: 48.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001828/0.5221, allocations: 467.8 kB / 385 MB, free: 48.05 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003472/0.5225, allocations: 130.7 kB / 385.1 MB, free: 47.96 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002551/0.525, allocations: 1.258 MB / 386.4 MB, free: 47.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.525, allocations: 5.125 kB / 386.4 MB, free: 47.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006289/0.5257, allocations: 358.6 kB / 386.8 MB, free: 47.22 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.5272, allocations: 256.9 kB / 387 MB, free: 47.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005525/0.5327, allocations: 3.095 MB / 390.1 MB, free: 45.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009714/0.5337, allocations: 1.171 MB / 391.3 MB, free: 44.56 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009002/0.5346, allocations: 157.8 kB / 391.4 MB, free: 44.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000214/0.5348, allocations: 73.14 kB / 391.5 MB, free: 44.51 MB / 318.1 MB Notification: Performance of SimCode: time 1.543e-06/0.5348, allocations: 0 / 391.5 MB, free: 44.51 MB / 318.1 MB Notification: Performance of Templates: time 0.02501/0.5598, allocations: 12.04 MB / 403.5 MB, free: 38.27 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches