Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001098/0.001098, allocations: 114.9 kB / 17.75 MB, free: 5.312 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.001156/0.001156, allocations: 188.4 kB / 18.67 MB, free: 4.395 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.357/1.357, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 35.94 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2374, allocations: 49.44 MB / 401.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009391/0.2468, allocations: 8.158 MB / 409.6 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004639/0.2515, allocations: 2.703 MB / 412.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009987/0.2525, allocations: 31.88 kB / 412.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001645/0.2542, allocations: 0.5278 MB / 412.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001391/0.2556, allocations: 440.5 kB / 413.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009296/0.2566, allocations: 357.7 kB / 413.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001954/0.2585, allocations: 1.503 MB / 415.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.2596, allocations: 0.601 MB / 415.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008992/0.2605, allocations: 0.5641 MB / 416.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009717/0.2615, allocations: 0.5987 MB / 416.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002957/0.2618, allocations: 140 kB / 417 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005967/0.2624, allocations: 187.9 kB / 417.2 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003314/0.2627, allocations: 290.9 kB / 417.5 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.2638, allocations: 0.6608 MB / 418.2 MB, free: 8.211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002235/0.2661, allocations: 1.732 MB / 419.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.2661, allocations: 0 / 419.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.2661, allocations: 0 / 419.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.066e-05/0.2662, allocations: 0 / 419.9 MB, free: 6.473 MB / 334.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.002962/0.2691, allocations: 1.507 MB / 421.4 MB, free: 4.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.2692, allocations: 8.031 kB / 421.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006178/0.2698, allocations: 183.3 kB / 421.6 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.271, allocations: 0.8016 MB / 422.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.177e-05/0.2711, allocations: 73.94 kB / 422.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000154/0.2713, allocations: 103.9 kB / 422.6 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.2728, allocations: 0.9497 MB / 423.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/0.2729, allocations: 7.906 kB / 423.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.715e-05/0.273, allocations: 40 kB / 423.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/0.273, allocations: 28 kB / 423.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.2741, allocations: 0.6324 MB / 424.2 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00498/0.2791, allocations: 4.08 MB / 428.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009558/0.2801, allocations: 427.7 kB / 428.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.2804, allocations: 169.4 kB / 428.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.213e-05/0.2805, allocations: 7.984 kB / 428.9 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.2805, allocations: 38.56 kB / 428.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.184e-06/0.2805, allocations: 0 / 428.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002345/0.2829, allocations: 1.323 MB / 430.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.2829, allocations: 106.8 kB / 430.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.2841, allocations: 0.8975 MB / 431.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.115e-05/0.2841, allocations: 37.7 kB / 431.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003966/0.2845, allocations: 0.5876 MB / 431.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.2846, allocations: 153.9 kB / 432 MB, free: 9.816 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.2848, allocations: 142.5 kB / 432.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.2849, allocations: 330 kB / 432.5 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.2853, allocations: 172.8 kB / 432.6 MB, free: 9.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.2858, allocations: 493.7 kB / 433.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008538/0.2867, allocations: 0.6792 MB / 433.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.2867, allocations: 8 kB / 433.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001245/0.2879, allocations: 0.7466 MB / 434.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.288, allocations: 15.98 kB / 434.6 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.288, allocations: 8 kB / 434.6 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001567/0.2881, allocations: 32.86 kB / 434.6 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005731/0.2887, allocations: 168.1 kB / 434.8 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.2898, allocations: 1.394 MB / 436.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006792/0.2905, allocations: 39.89 kB / 436.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.2905, allocations: 39.98 kB / 436.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005714/0.2911, allocations: 358 kB / 436.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004615/0.2916, allocations: 473.8 kB / 437.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007915/0.2924, allocations: 0.6639 MB / 437.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.25e-06/0.2924, allocations: 4 kB / 437.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00111/0.2935, allocations: 0.7158 MB / 438.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2935, allocations: 16.22 kB / 438.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.2935, allocations: 8 kB / 438.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001016/0.2937, allocations: 36.84 kB / 438.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005165/0.2942, allocations: 167.7 kB / 438.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.2952, allocations: 1.386 MB / 440.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006815/0.2959, allocations: 39.89 kB / 440.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.015e-05/0.2959, allocations: 32 kB / 440.1 MB, free: 0.7852 MB / 350.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.0001978/0.2961, allocations: 241.7 kB / 440.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.2963, allocations: 90.88 kB / 440.5 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008175/0.2971, allocations: 427.2 kB / 440.9 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2971, allocations: 4 kB / 440.9 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2971, allocations: 4 kB / 440.9 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.2972, allocations: 7.938 kB / 440.9 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001993/0.2991, allocations: 1.38 MB / 442.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.2992, allocations: 0 / 442.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003701/0.2995, allocations: 79.89 kB / 442.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.362e-05/0.2996, allocations: 24.78 kB / 442.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/0.2997, allocations: 12 kB / 442.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009386/0.3006, allocations: 1.367 MB / 443.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.189e-05/0.3007, allocations: 7.969 kB / 443.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.3018, allocations: 0.7223 MB / 444.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.3021, allocations: 199.9 kB / 444.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.3022, allocations: 19.98 kB / 444.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003996/0.3026, allocations: 15.98 kB / 444.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.942e-05/0.3027, allocations: 31.97 kB / 444.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.3027, allocations: 12 kB / 444.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008061/0.3035, allocations: 0.6054 MB / 445.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3035, allocations: 0 / 445.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001147/0.3047, allocations: 348 kB / 445.7 MB, free: 10.91 MB / 366.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.0002131/0.3049, allocations: 135.1 kB / 445.8 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.3065, allocations: 0.9744 MB / 446.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3065, allocations: 0 / 446.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004272/0.3069, allocations: 286.4 kB / 447.1 MB, free: 9.473 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.3081, allocations: 247.8 kB / 447.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.3109, allocations: 1.839 MB / 449.2 MB, free: 7.336 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.3115, allocations: 1.021 MB / 450.2 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.3117, allocations: 63.44 kB / 450.2 MB, free: 6.223 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3117, allocations: 0 / 450.2 MB, free: 6.223 MB / 366.1 MB Notification: Performance of Templates: time 0.0239/0.3356, allocations: 16.9 MB / 467.2 MB, free: 5.367 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches