Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008522/0.0008523, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.505/1.505, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007448/0.0007449, allocations: 82.03 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002962, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2313, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006766/0.2382, allocations: 7.164 MB / 381.7 MB, free: 39.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003512/0.2417, allocations: 2.567 MB / 384.3 MB, free: 37.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004795/0.2422, allocations: 26.44 kB / 384.3 MB, free: 37.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009792/0.2432, allocations: 447.5 kB / 384.8 MB, free: 37.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006106/0.2438, allocations: 354.6 kB / 385.1 MB, free: 37.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005058/0.2443, allocations: 247.3 kB / 385.3 MB, free: 36.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001187/0.2455, allocations: 1.343 MB / 386.7 MB, free: 36.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006073/0.2462, allocations: 448.8 kB / 387.1 MB, free: 35.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004727/0.2466, allocations: 444.8 kB / 387.6 MB, free: 35.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004657/0.2471, allocations: 0.4909 MB / 388 MB, free: 35.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.2472, allocations: 61.12 kB / 388.1 MB, free: 35.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002474/0.2475, allocations: 99.02 kB / 388.2 MB, free: 35.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.2476, allocations: 199 kB / 388.4 MB, free: 34.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001495/0.2478, allocations: 257 kB / 388.6 MB, free: 34.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007966/0.2486, allocations: 1.324 MB / 390 MB, free: 33.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2486, allocations: 0 / 390 MB, free: 33.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2486, allocations: 0 / 390 MB, free: 33.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.2486, allocations: 3.938 kB / 390 MB, free: 33.36 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001814/0.2504, allocations: 1.324 MB / 391.3 MB, free: 31.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.2505, allocations: 8.031 kB / 391.3 MB, free: 31.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005221/0.251, allocations: 194.2 kB / 391.5 MB, free: 31.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008785/0.2519, allocations: 0.7503 MB / 392.2 MB, free: 30.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.89e-05/0.2519, allocations: 74 kB / 392.3 MB, free: 30.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.2521, allocations: 99.98 kB / 392.4 MB, free: 30.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.2533, allocations: 0.9497 MB / 393.4 MB, free: 29.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.2534, allocations: 11.89 kB / 393.4 MB, free: 29.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.244e-05/0.2535, allocations: 40 kB / 393.4 MB, free: 29.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.2535, allocations: 24 kB / 393.4 MB, free: 29.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009765/0.2545, allocations: 0.6441 MB / 394.1 MB, free: 29.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003883/0.2584, allocations: 4.124 MB / 398.2 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008704/0.2593, allocations: 467.2 kB / 398.7 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.2595, allocations: 169.2 kB / 398.8 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.2596, allocations: 7.75 kB / 398.8 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.2596, allocations: 38.56 kB / 398.9 MB, free: 24.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 2.314e-06/0.2596, allocations: 0 / 398.9 MB, free: 24.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001952/0.2616, allocations: 1.357 MB / 400.2 MB, free: 22.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.2616, allocations: 110.8 kB / 400.3 MB, free: 22.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008584/0.2625, allocations: 0.8862 MB / 401.2 MB, free: 21.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.2625, allocations: 41.7 kB / 401.3 MB, free: 21.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002559/0.2628, allocations: 0.5876 MB / 401.9 MB, free: 20.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.221e-05/0.2628, allocations: 153.8 kB / 402 MB, free: 20.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.119e-05/0.2629, allocations: 12 kB / 402 MB, free: 20.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.667e-05/0.2629, allocations: 334 kB / 402.3 MB, free: 20.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002734/0.2632, allocations: 165.9 kB / 402.5 MB, free: 20.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.2636, allocations: 0.4938 MB / 403 MB, free: 19.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003506/0.264, allocations: 247.7 kB / 403.2 MB, free: 19.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.264, allocations: 4 kB / 403.2 MB, free: 19.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009627/0.2649, allocations: 0.7505 MB / 404 MB, free: 18.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.2651, allocations: 397.1 kB / 404.4 MB, free: 18.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.2651, allocations: 12 kB / 404.4 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001391/0.2652, allocations: 36.84 kB / 404.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/0.2658, allocations: 171.7 kB / 404.6 MB, free: 17.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006567/0.2664, allocations: 1.292 MB / 405.9 MB, free: 16.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004723/0.2669, allocations: 48.05 kB / 405.9 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.267, allocations: 32 kB / 406 MB, free: 16.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.201e-06/0.267, allocations: 7.953 kB / 406 MB, free: 16.39 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007611/0.2678, allocations: 0.6174 MB / 406.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.515e-06/0.2678, allocations: 12 kB / 406.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.197e-05/0.2679, allocations: 36.84 kB / 406.6 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.2683, allocations: 163.7 kB / 406.8 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005287/0.2689, allocations: 1.288 MB / 408.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004236/0.2693, allocations: 39.89 kB / 408.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.2693, allocations: 36.16 kB / 408.2 MB, free: 14.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0003567/0.2697, allocations: 340.8 kB / 408.5 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.667e-05/0.2698, allocations: 94.88 kB / 408.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006781/0.2705, allocations: 447.2 kB / 409 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.2705, allocations: 4 kB / 409 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.594e-06/0.2705, allocations: 0 / 409 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.2705, allocations: 0 / 409 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.2721, allocations: 1.402 MB / 410.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.2721, allocations: 11.94 kB / 410.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003367/0.2724, allocations: 75.91 kB / 410.5 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.677e-05/0.2725, allocations: 20.84 kB / 410.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.2725, allocations: 12 kB / 410.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000527/0.2731, allocations: 1.268 MB / 411.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.2731, allocations: 0 / 411.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008724/0.274, allocations: 0.7355 MB / 412.6 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000184/0.2742, allocations: 204 kB / 412.8 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.509e-05/0.2743, allocations: 12 kB / 412.8 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003778/0.2746, allocations: 27.98 kB / 412.8 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.456e-05/0.2747, allocations: 27.91 kB / 412.8 MB, free: 9.121 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.2747, allocations: 12 kB / 412.8 MB, free: 9.109 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006078/0.2753, allocations: 0.6094 MB / 413.4 MB, free: 8.488 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2754, allocations: 4 kB / 413.4 MB, free: 8.484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009112/0.2763, allocations: 348 kB / 413.8 MB, free: 8.145 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * 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.0001583/0.2764, allocations: 115.2 kB / 413.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.2777, allocations: 0.9824 MB / 414.9 MB, free: 7.016 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2777, allocations: 0 / 414.9 MB, free: 7.016 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003219/0.278, allocations: 287.5 kB / 415.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.2791, allocations: 234.8 kB / 415.4 MB, free: 6.496 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.2815, allocations: 2.269 MB / 417.7 MB, free: 4.168 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.2818, allocations: 1.025 MB / 418.7 MB, free: 3.113 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.282, allocations: 63.42 kB / 418.7 MB, free: 3.051 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.282, allocations: 0 / 418.7 MB, free: 3.051 MB / 298.7 MB Notification: Performance of Templates: time 0.02008/0.3021, allocations: 16.71 MB / 435.5 MB, free: 2.344 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches