Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001399/0.001399, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001525/0.001525, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 246.9 MB, free: 9.051 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 61.86 kB / 306.9 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0924/0.09355, allocations: 50.53 MB / 357.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009037/0.1026, allocations: 8.144 MB / 365.6 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004725/0.1074, allocations: 2.703 MB / 368.3 MB, free: 3.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001063/0.1085, allocations: 23.94 kB / 368.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00175/0.1103, allocations: 485.3 kB / 368.8 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00149/0.1118, allocations: 369.3 kB / 369.2 MB, free: 2.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009709/0.1128, allocations: 315.7 kB / 369.5 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00202/0.1148, allocations: 1.413 MB / 370.9 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000889/0.1157, allocations: 0.5368 MB / 371.4 MB, free: 248 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1467/0.2625, allocations: 0.4978 MB / 371.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008221/0.2633, allocations: 0.5667 MB / 372.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002149/0.2635, allocations: 84.47 kB / 372.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003891/0.2639, allocations: 129 kB / 372.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001893/0.2641, allocations: 232.4 kB / 372.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006256/0.2648, allocations: 0.6091 MB / 373.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001358/0.2661, allocations: 1.362 MB / 374.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.2662, allocations: 1.094 kB / 374.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.2662, allocations: 0 / 374.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.342e-05/0.2662, allocations: 0.5312 kB / 374.9 MB, free: 10.25 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002623/0.2688, allocations: 1.514 MB / 376.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.2689, allocations: 9.719 kB / 376.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000702/0.2696, allocations: 188.7 kB / 376.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.2708, allocations: 0.7707 MB / 377.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/0.2709, allocations: 72.12 kB / 377.4 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.271, allocations: 108.6 kB / 377.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.2726, allocations: 0.9588 MB / 378.5 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.2727, allocations: 3.078 kB / 378.5 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.646e-05/0.2728, allocations: 40 kB / 378.5 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.081e-05/0.2728, allocations: 24.75 kB / 378.6 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.274, allocations: 0.643 MB / 379.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005385/0.2794, allocations: 4.109 MB / 383.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009269/0.2804, allocations: 428.6 kB / 383.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.2807, allocations: 165.7 kB / 383.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.2808, allocations: 7.594 kB / 383.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.2808, allocations: 35.11 kB / 383.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.454e-06/0.2808, allocations: 0 / 383.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002482/0.2833, allocations: 1.314 MB / 385.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.2833, allocations: 138 kB / 385.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/0.2846, allocations: 0.894 MB / 386.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.2847, allocations: 35.3 kB / 386.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002978/0.285, allocations: 0.5912 MB / 386.9 MB, free: 4.289 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.2851, allocations: 145.8 kB / 387 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.2853, allocations: 143.4 kB / 387.2 MB, free: 4.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.834e-05/0.2853, allocations: 341.5 kB / 387.5 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/0.2857, allocations: 170.5 kB / 387.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004208/0.2861, allocations: 0.4949 MB / 388.2 MB, free: 3.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007678/0.2869, allocations: 0.6772 MB / 388.9 MB, free: 2.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/0.2869, allocations: 7.219 kB / 388.9 MB, free: 2.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001277/0.2882, allocations: 0.7412 MB / 389.6 MB, free: 2.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.2882, allocations: 14.12 kB / 389.6 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.2882, allocations: 14.56 kB / 389.6 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000172/0.2884, allocations: 35.62 kB / 389.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005723/0.289, allocations: 171.4 kB / 389.8 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007387/0.2898, allocations: 1.292 MB / 391.1 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007549/0.2905, allocations: 43.25 kB / 391.2 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.456e-05/0.2906, allocations: 33.31 kB / 391.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005968/0.2912, allocations: 350.3 kB / 391.5 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003857/0.2916, allocations: 491.4 kB / 392 MB, free: 364 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008279/0.2924, allocations: 0.6626 MB / 392.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.046e-05/0.2924, allocations: 3.594 kB / 392.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001286/0.2937, allocations: 0.7313 MB / 393.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.2938, allocations: 12.92 kB / 393.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.2938, allocations: 11.91 kB / 393.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00011/0.2939, allocations: 31.8 kB / 393.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000562/0.2945, allocations: 169.6 kB / 393.6 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009584/0.2954, allocations: 1.289 MB / 394.9 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007472/0.2962, allocations: 43.27 kB / 395 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.479e-05/0.2963, allocations: 32.38 kB / 395 MB, free: 14.2 MB / 318.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.0002444/0.2965, allocations: 230.3 kB / 395.2 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001997/0.2967, allocations: 91.12 kB / 395.3 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009484/0.2977, allocations: 447.4 kB / 395.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2977, allocations: 3.375 kB / 395.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.2977, allocations: 1.188 kB / 395.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.2977, allocations: 3.938 kB / 395.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002378/0.3001, allocations: 1.384 MB / 397.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.3001, allocations: 2.953 kB / 397.2 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003887/0.3005, allocations: 82.36 kB / 397.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.896e-05/0.3006, allocations: 24.94 kB / 397.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.435e-05/0.3007, allocations: 9.453 kB / 397.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009201/0.3016, allocations: 1.271 MB / 398.5 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3016, allocations: 5.406 kB / 398.5 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.3028, allocations: 0.7241 MB / 399.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004044/0.3032, allocations: 199.5 kB / 399.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001904/0.3034, allocations: 21.48 kB / 399.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000472/0.3039, allocations: 18.98 kB / 399.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.95e-05/0.304, allocations: 25.72 kB / 399.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.304, allocations: 18.12 kB / 399.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008962/0.3049, allocations: 0.6079 MB / 400.2 MB, free: 10.58 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3049, allocations: 0 / 400.2 MB, free: 10.58 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001443/0.3064, allocations: 347.4 kB / 400.5 MB, free: 10.55 MB / 318.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.0002366/0.3066, allocations: 127.3 kB / 400.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.3084, allocations: 0.9642 MB / 401.6 MB, free: 9.965 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.3084, allocations: 1.188 kB / 401.6 MB, free: 9.965 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004222/0.3088, allocations: 289.1 kB / 401.9 MB, free: 9.785 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.3102, allocations: 226.9 kB / 402.1 MB, free: 9.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003405/0.3136, allocations: 2.276 MB / 404.4 MB, free: 8.074 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/0.3143, allocations: 1.025 MB / 405.4 MB, free: 7.227 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.3145, allocations: 63.98 kB / 405.4 MB, free: 7.215 MB / 318.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3145, allocations: 0 / 405.4 MB, free: 7.215 MB / 318.1 MB Notification: Performance of Templates: time 0.02215/0.3367, allocations: 16.8 MB / 422.2 MB, free: 7.59 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches