Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.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_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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001229/0.001229, allocations: 189.1 kB / 19.33 MB, free: 3.758 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.212/1.212, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001243/0.001243, allocations: 47.92 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07494/0.07619, allocations: 46.62 MB / 375.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.1569/0.2331, allocations: 8.13 MB / 384 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004141/0.2372, allocations: 2.742 MB / 386.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000941/0.2382, allocations: 27.19 kB / 386.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001442/0.2397, allocations: 0.5397 MB / 387.3 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001188/0.2409, allocations: 437.3 kB / 387.7 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007565/0.2417, allocations: 362.4 kB / 388.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001437/0.2431, allocations: 1.498 MB / 389.5 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007188/0.2438, allocations: 0.6176 MB / 390.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006035/0.2445, allocations: 0.5661 MB / 390.7 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005444/0.245, allocations: 0.6042 MB / 391.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001601/0.2452, allocations: 139.3 kB / 391.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003228/0.2455, allocations: 176.4 kB / 391.6 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.2457, allocations: 293.3 kB / 391.9 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000449/0.2461, allocations: 0.6622 MB / 392.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001518/0.2477, allocations: 1.727 MB / 394.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2477, allocations: 1.188 kB / 394.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2477, allocations: 5.25 kB / 394.3 MB, free: 3.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.031e-05/0.2477, allocations: 4 kB / 394.3 MB, free: 3.879 MB / 318.1 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.002034/0.2497, allocations: 1.505 MB / 395.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2498, allocations: 8.594 kB / 395.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005559/0.2503, allocations: 191 kB / 396 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.2514, allocations: 0.799 MB / 396.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.82e-05/0.2515, allocations: 77.28 kB / 396.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.2516, allocations: 101.5 kB / 397 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.253, allocations: 0.9523 MB / 398 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.878e-05/0.253, allocations: 3.234 kB / 398 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.714e-05/0.2531, allocations: 41.25 kB / 398 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.2531, allocations: 23.72 kB / 398 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.2542, allocations: 0.6355 MB / 398.7 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004418/0.2587, allocations: 4.091 MB / 402.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009552/0.2596, allocations: 428.3 kB / 403.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002667/0.2599, allocations: 162.7 kB / 403.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.2599, allocations: 8.109 kB / 403.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.26, allocations: 38.44 kB / 403.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.864e-06/0.26, allocations: 0 / 403.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002176/0.2622, allocations: 1.318 MB / 404.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.2622, allocations: 111.6 kB / 404.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.2633, allocations: 0.9019 MB / 405.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.2634, allocations: 34.8 kB / 405.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003775/0.2637, allocations: 0.5874 MB / 406.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.2639, allocations: 149.6 kB / 406.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.264, allocations: 135 kB / 406.6 MB, free: 11.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2642, allocations: 344.8 kB / 406.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003047/0.2645, allocations: 175.9 kB / 407.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004959/0.265, allocations: 493.4 kB / 407.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008431/0.2658, allocations: 0.679 MB / 408.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.2658, allocations: 3.406 kB / 408.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001162/0.267, allocations: 0.7487 MB / 409 MB, free: 10.03 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.267, allocations: 10.81 kB / 409 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.2671, allocations: 9.906 kB / 409 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.2672, allocations: 36.06 kB / 409.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005257/0.2677, allocations: 174.5 kB / 409.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009506/0.2687, allocations: 1.392 MB / 410.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005135/0.2692, allocations: 35.3 kB / 410.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-05/0.2693, allocations: 37.56 kB / 410.7 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000502/0.2698, allocations: 352.2 kB / 411.1 MB, free: 8.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004423/0.2702, allocations: 482.1 kB / 411.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007486/0.271, allocations: 0.6712 MB / 412.2 MB, free: 7.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.48e-06/0.271, allocations: 3.219 kB / 412.2 MB, free: 7.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00105/0.2721, allocations: 0.7216 MB / 412.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.2721, allocations: 9.812 kB / 412.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.2721, allocations: 9.75 kB / 412.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.981e-05/0.2722, allocations: 36.25 kB / 413 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004875/0.2727, allocations: 168.3 kB / 413.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008482/0.2735, allocations: 1.388 MB / 414.5 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004957/0.2741, allocations: 33.64 kB / 414.6 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.2741, allocations: 33.75 kB / 414.6 MB, free: 5.254 MB / 334.1 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 (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.0001796/0.2743, allocations: 245.2 kB / 414.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.2744, allocations: 95.44 kB / 414.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007639/0.2752, allocations: 427.8 kB / 415.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2752, allocations: 4.531 kB / 415.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2752, allocations: 0.9688 kB / 415.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.2752, allocations: 7.922 kB / 415.4 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00186/0.2771, allocations: 1.375 MB / 416.7 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.2771, allocations: 2.75 kB / 416.7 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003168/0.2774, allocations: 77.92 kB / 416.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.193e-05/0.2775, allocations: 24.67 kB / 416.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.2775, allocations: 12.33 kB / 416.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008296/0.2784, allocations: 1.378 MB / 418.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.2784, allocations: 6.438 kB / 418.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009757/0.2794, allocations: 0.7144 MB / 418.9 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002532/0.2796, allocations: 206.7 kB / 419.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.2797, allocations: 9.562 kB / 419.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000376/0.2801, allocations: 31.66 kB / 419.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.772e-05/0.2802, allocations: 28.09 kB / 419.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.2802, allocations: 10.16 kB / 419.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007193/0.2809, allocations: 0.6096 MB / 419.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2809, allocations: 0 / 419.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001036/0.282, allocations: 348.4 kB / 420.2 MB, free: 1.098 MB / 334.1 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 (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.0001823/0.2822, allocations: 126.5 kB / 420.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001439/0.2836, allocations: 0.9882 MB / 421.3 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.2836, allocations: 0 / 421.3 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003725/0.284, allocations: 293 kB / 421.6 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.2851, allocations: 235.6 kB / 421.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.2877, allocations: 1.847 MB / 423.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005376/0.2882, allocations: 1.025 MB / 424.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.2884, allocations: 59.44 kB / 424.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2884, allocations: 0 / 424.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Templates: time 0.01908/0.3075, allocations: 16.95 MB / 441.7 MB, free: 11.98 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches