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.001435/0.001435, allocations: 118.8 kB / 17.79 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001795/0.001795, allocations: 201.2 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 63.89 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2651, allocations: 50.54 MB / 409.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008838/0.2739, allocations: 8.177 MB / 417.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004326/0.2783, allocations: 2.73 MB / 420.2 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005516/0.2789, allocations: 23.94 kB / 420.2 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.2801, allocations: 0.5668 MB / 420.8 MB, free: 6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008416/0.281, allocations: 464.5 kB / 421.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00063/0.2816, allocations: 355.5 kB / 421.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.2829, allocations: 1.499 MB / 423.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000768/0.2837, allocations: 0.6178 MB / 423.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006715/0.2844, allocations: 0.5641 MB / 424.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006077/0.285, allocations: 0.6066 MB / 424.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.2852, allocations: 140 kB / 425 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002844/0.2855, allocations: 176 kB / 425.2 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002138/0.2857, allocations: 286.9 kB / 425.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000566/0.2863, allocations: 0.6685 MB / 426.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001644/0.2879, allocations: 1.713 MB / 427.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.288, allocations: 0 / 427.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.288, allocations: 0 / 427.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.908e-05/0.288, allocations: 0 / 427.8 MB, free: 14.89 MB / 350.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.002318/0.2903, allocations: 1.519 MB / 429.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.2904, allocations: 8.031 kB / 429.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006173/0.291, allocations: 191.2 kB / 429.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.2923, allocations: 0.79 MB / 430.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.68e-05/0.2923, allocations: 77.94 kB / 430.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.2925, allocations: 103.9 kB / 430.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.2939, allocations: 0.9584 MB / 431.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/0.294, allocations: 7.844 kB / 431.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-05/0.2941, allocations: 44 kB / 431.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.2941, allocations: 24 kB / 431.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.2952, allocations: 0.6324 MB / 432.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004696/0.2999, allocations: 4.088 MB / 436.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008937/0.3009, allocations: 437.6 kB / 436.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.3011, allocations: 156.8 kB / 436.8 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.3012, allocations: 4 kB / 436.8 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.3012, allocations: 38.56 kB / 436.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.913e-06/0.3012, allocations: 0 / 436.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002333/0.3036, allocations: 1.319 MB / 438.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.265e-05/0.3037, allocations: 132.5 kB / 438.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.3048, allocations: 0.8936 MB / 439.2 MB, free: 2.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.198e-05/0.3048, allocations: 41.7 kB / 439.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004085/0.3052, allocations: 0.5914 MB / 439.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.139e-05/0.3053, allocations: 138 kB / 440 MB, free: 2.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.3055, allocations: 142.5 kB / 440.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.3056, allocations: 330 kB / 440.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003152/0.306, allocations: 176.8 kB / 440.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005275/0.3065, allocations: 0.4946 MB / 441.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008331/0.3073, allocations: 0.6789 MB / 441.8 MB, free: 72 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.3074, allocations: 4 kB / 441.8 MB, free: 68 kB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001166/0.3085, allocations: 0.7505 MB / 442.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.3086, allocations: 10.81 kB / 442.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.3086, allocations: 12 kB / 442.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001455/0.3087, allocations: 41.47 kB / 442.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005611/0.3093, allocations: 167.7 kB / 442.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009967/0.3103, allocations: 1.386 MB / 444.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005286/0.3109, allocations: 39.89 kB / 444.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.3109, allocations: 32 kB / 444.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005096/0.3114, allocations: 354.1 kB / 444.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004601/0.3119, allocations: 490.6 kB / 445 MB, free: 12.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007492/0.3127, allocations: 0.66 MB / 445.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.815e-06/0.3127, allocations: 4 kB / 445.7 MB, free: 11.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001089/0.3138, allocations: 0.7232 MB / 446.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.3138, allocations: 8 kB / 446.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.3138, allocations: 12 kB / 446.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.265e-05/0.3139, allocations: 40.78 kB / 446.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005316/0.3144, allocations: 171.7 kB / 446.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009629/0.3154, allocations: 1.375 MB / 448 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005273/0.316, allocations: 47.98 kB / 448.1 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-05/0.316, allocations: 32 kB / 448.1 MB, free: 9.133 MB / 366.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.0001772/0.3162, allocations: 239.9 kB / 448.3 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.3163, allocations: 90.88 kB / 448.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007854/0.3171, allocations: 435.4 kB / 448.9 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3171, allocations: 4 kB / 448.9 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.285e-06/0.3171, allocations: 0 / 448.9 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.3172, allocations: 7.922 kB / 448.9 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001928/0.3191, allocations: 1.38 MB / 450.3 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.3191, allocations: 4 kB / 450.3 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000371/0.3195, allocations: 83.88 kB / 450.3 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.082e-05/0.3196, allocations: 17.08 kB / 450.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.3196, allocations: 19.98 kB / 450.4 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008701/0.3205, allocations: 1.363 MB / 451.7 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.3205, allocations: 4.031 kB / 451.7 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.3215, allocations: 0.7027 MB / 452.4 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002831/0.3218, allocations: 211.9 kB / 452.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.15e-05/0.3219, allocations: 8 kB / 452.7 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.3223, allocations: 27.97 kB / 452.7 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.046e-05/0.3224, allocations: 27.91 kB / 452.7 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.762e-05/0.3225, allocations: 16 kB / 452.7 MB, free: 4.223 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008355/0.3233, allocations: 0.6015 MB / 453.3 MB, free: 3.609 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3233, allocations: 0 / 453.3 MB, free: 3.609 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001064/0.3244, allocations: 359.9 kB / 453.7 MB, free: 3.258 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.0001984/0.3246, allocations: 130.9 kB / 453.8 MB, free: 3.121 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001478/0.3261, allocations: 0.9665 MB / 454.8 MB, free: 2.133 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3261, allocations: 0 / 454.8 MB, free: 2.133 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003963/0.3265, allocations: 294.9 kB / 455.1 MB, free: 1.832 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.3275, allocations: 253.3 kB / 455.3 MB, free: 1.594 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.3303, allocations: 1.79 MB / 457.1 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005715/0.3308, allocations: 1.021 MB / 458.1 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000412/0.3313, allocations: 127.3 kB / 458.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.3314, allocations: 59.38 kB / 458.3 MB, free: 14.52 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3314, allocations: 0 / 458.3 MB, free: 14.52 MB / 382.1 MB Notification: Performance of Templates: time 0.01853/0.35, allocations: 10.82 MB / 469.1 MB, free: 3.797 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/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