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.001479/0.001479, allocations: 113.4 kB / 17.99 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001831/0.001831, allocations: 209.8 kB / 18.92 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 247.1 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 58.75 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08675/0.08797, allocations: 50.54 MB / 357.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008929/0.09694, allocations: 8.133 MB / 365.8 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00425/0.1012, allocations: 2.692 MB / 368.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005682/0.1018, allocations: 27.88 kB / 368.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.1031, allocations: 485.3 kB / 369 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007907/0.1039, allocations: 373.3 kB / 369.3 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006122/0.1045, allocations: 323.7 kB / 369.7 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.1059, allocations: 1.492 MB / 371.2 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007767/0.1067, allocations: 0.6087 MB / 371.8 MB, free: 208 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1514/0.2581, allocations: 0.5568 MB / 372.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007836/0.2589, allocations: 0.6037 MB / 372.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002196/0.2591, allocations: 140 kB / 373.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003768/0.2595, allocations: 178.3 kB / 373.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000193/0.2597, allocations: 287 kB / 373.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005536/0.2603, allocations: 0.6704 MB / 374.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001629/0.2619, allocations: 1.379 MB / 375.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.2619, allocations: 0.7031 kB / 375.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2619, allocations: 1.094 kB / 375.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.541e-05/0.262, allocations: 1.094 kB / 375.6 MB, free: 10.43 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.002457/0.2644, allocations: 1.509 MB / 377.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.2645, allocations: 8.25 kB / 377.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006212/0.2651, allocations: 190.6 kB / 377.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.2661, allocations: 0.7654 MB / 378 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.901e-05/0.2662, allocations: 77.81 kB / 378.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.2664, allocations: 109 kB / 378.2 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.2679, allocations: 0.9568 MB / 379.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.378e-05/0.2679, allocations: 4.938 kB / 379.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-05/0.268, allocations: 42.12 kB / 379.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.2681, allocations: 23.16 kB / 379.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.2692, allocations: 0.6371 MB / 379.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004682/0.2739, allocations: 4.116 MB / 384 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009349/0.2748, allocations: 424.6 kB / 384.4 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002646/0.2751, allocations: 166.1 kB / 384.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/0.2752, allocations: 4.688 kB / 384.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.794e-05/0.2752, allocations: 42.31 kB / 384.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.324e-06/0.2752, allocations: 0 / 384.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002243/0.2774, allocations: 1.312 MB / 385.9 MB, free: 5.363 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.2775, allocations: 143.1 kB / 386.1 MB, free: 5.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.2786, allocations: 0.8911 MB / 387 MB, free: 4.805 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.2786, allocations: 35.86 kB / 387 MB, free: 4.766 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002767/0.2789, allocations: 0.5907 MB / 387.6 MB, free: 4.297 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.048e-05/0.279, allocations: 145.6 kB / 387.7 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.2792, allocations: 142.2 kB / 387.9 MB, free: 4.105 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.501e-05/0.2792, allocations: 338 kB / 388.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003029/0.2795, allocations: 173.7 kB / 388.4 MB, free: 3.719 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004309/0.28, allocations: 0.497 MB / 388.9 MB, free: 3.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007115/0.2807, allocations: 0.68 MB / 389.5 MB, free: 2.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.2807, allocations: 8.078 kB / 389.5 MB, free: 2.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001129/0.2818, allocations: 0.7445 MB / 390.3 MB, free: 2.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.2819, allocations: 13.09 kB / 390.3 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.2819, allocations: 15.44 kB / 390.3 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001525/0.2821, allocations: 32.14 kB / 390.4 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005697/0.2826, allocations: 173 kB / 390.5 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007428/0.2834, allocations: 1.383 MB / 391.9 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006685/0.2841, allocations: 39.97 kB / 391.9 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/0.2841, allocations: 37.28 kB / 392 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005781/0.2847, allocations: 353 kB / 392.3 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003757/0.2851, allocations: 490.9 kB / 392.8 MB, free: 268 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007999/0.2859, allocations: 0.6589 MB / 393.5 MB, free: 15.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.793e-06/0.2859, allocations: 3.906 kB / 393.5 MB, free: 15.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001227/0.2872, allocations: 0.72 MB / 394.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2872, allocations: 13.47 kB / 394.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.2872, allocations: 16.55 kB / 394.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001016/0.2873, allocations: 39.28 kB / 394.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005124/0.2878, allocations: 167.4 kB / 394.4 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009474/0.2888, allocations: 1.379 MB / 395.8 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006539/0.2895, allocations: 42.67 kB / 395.8 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.826e-05/0.2895, allocations: 37.72 kB / 395.9 MB, free: 14 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.0002201/0.2898, allocations: 232.6 kB / 396.1 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.2899, allocations: 91.5 kB / 396.2 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008382/0.2907, allocations: 441.5 kB / 396.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.2908, allocations: 6.219 kB / 396.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.2908, allocations: 1.156 kB / 396.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.2908, allocations: 3.844 kB / 396.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.2928, allocations: 1.381 MB / 398 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2928, allocations: 4.562 kB / 398 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003558/0.2932, allocations: 83.48 kB / 398.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.624e-05/0.2933, allocations: 24.08 kB / 398.1 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/0.2933, allocations: 12.11 kB / 398.1 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000922/0.2943, allocations: 1.367 MB / 399.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.2943, allocations: 6.594 kB / 399.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.2953, allocations: 0.7044 MB / 400.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003041/0.2957, allocations: 206.5 kB / 400.4 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.2958, allocations: 15.8 kB / 400.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004272/0.2962, allocations: 24.2 kB / 400.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.218e-05/0.2963, allocations: 27.88 kB / 400.5 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.2963, allocations: 13.31 kB / 400.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008557/0.2972, allocations: 0.6083 MB / 401.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2972, allocations: 1.375 kB / 401.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001288/0.2985, allocations: 353.4 kB / 401.5 MB, free: 10.2 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.0002124/0.2987, allocations: 125.5 kB / 401.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.3003, allocations: 0.9822 MB / 402.6 MB, free: 9.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3004, allocations: 0.75 kB / 402.6 MB, free: 9.605 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003887/0.3008, allocations: 288.9 kB / 402.8 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.302, allocations: 251.4 kB / 403.1 MB, free: 9.301 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003002/0.305, allocations: 2.271 MB / 405.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005529/0.3056, allocations: 1.029 MB / 406.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.3057, allocations: 68.03 kB / 406.4 MB, free: 6.828 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3057, allocations: 0 / 406.4 MB, free: 6.828 MB / 318.1 MB Notification: Performance of Templates: time 0.02129/0.327, allocations: 16.81 MB / 423.3 MB, free: 6.809 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