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.0009961/0.0009961, allocations: 89.23 kB / 16.65 MB, free: 6.258 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.001212/0.001212, allocations: 179.1 kB / 17.56 MB, free: 5.875 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.352/1.352, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002625, allocations: 8 kB / 301.4 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09534/0.09562, allocations: 50.43 MB / 351.9 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007798/0.1035, allocations: 7.624 MB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004578/0.1081, allocations: 2.649 MB / 362.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000743/0.1088, allocations: 27.88 kB / 362.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.1102, allocations: 473.4 kB / 362.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009524/0.1112, allocations: 373.3 kB / 363 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007187/0.1119, allocations: 322.9 kB / 363.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.1133, allocations: 1.417 MB / 364.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007602/0.114, allocations: 0.529 MB / 365.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005915/0.1146, allocations: 457.7 kB / 365.7 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006077/0.1153, allocations: 0.509 MB / 366.2 MB, free: 5.027 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.1154, allocations: 60 kB / 366.3 MB, free: 4.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002787/0.1157, allocations: 108 kB / 366.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001903/0.1159, allocations: 194.9 kB / 366.6 MB, free: 4.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006124/0.1165, allocations: 0.5999 MB / 367.2 MB, free: 4.062 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001436/0.1179, allocations: 1.592 MB / 368.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1179, allocations: 0 / 368.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.525e-05/0.118, allocations: 0 / 368.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.952e-05/0.118, allocations: 7.875 kB / 368.7 MB, free: 2.457 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.002706/0.1207, allocations: 1.301 MB / 370 MB, free: 1.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.942e-05/0.1208, allocations: 12.03 kB / 370.1 MB, free: 1.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008378/0.1216, allocations: 187.3 kB / 370.2 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.1231, allocations: 0.7783 MB / 371 MB, free: 88 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.508e-05/0.1232, allocations: 78.12 kB / 371.1 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1753/0.2986, allocations: 94.14 kB / 371.2 MB, free: 24.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002297/0.3009, allocations: 0.9588 MB / 372.1 MB, free: 24.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.269e-05/0.301, allocations: 5.797 kB / 372.2 MB, free: 24.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.359e-05/0.3011, allocations: 39.72 kB / 372.2 MB, free: 24.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.045e-05/0.3011, allocations: 24.16 kB / 372.2 MB, free: 24.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.3027, allocations: 0.649 MB / 372.9 MB, free: 24.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006653/0.3094, allocations: 4.142 MB / 377 MB, free: 21.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3105, allocations: 463 kB / 377.5 MB, free: 21.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.3108, allocations: 177.3 kB / 377.6 MB, free: 21.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.48e-05/0.3109, allocations: 4.984 kB / 377.6 MB, free: 21.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.3109, allocations: 36.81 kB / 377.7 MB, free: 21.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.595e-06/0.3109, allocations: 1.375 kB / 377.7 MB, free: 21.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002999/0.3139, allocations: 1.35 MB / 379 MB, free: 20.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.314, allocations: 107 kB / 379.1 MB, free: 20.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/0.3154, allocations: 0.8901 MB / 380 MB, free: 20 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.328e-05/0.3155, allocations: 37.69 kB / 380.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003609/0.3158, allocations: 0.5931 MB / 380.7 MB, free: 19.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.3159, allocations: 146.6 kB / 380.8 MB, free: 19.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.784e-05/0.316, allocations: 64.09 kB / 380.9 MB, free: 19.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.098e-05/0.3161, allocations: 333.7 kB / 381.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003432/0.3165, allocations: 170.4 kB / 381.3 MB, free: 18.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004886/0.317, allocations: 0.4911 MB / 381.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007982/0.3178, allocations: 0.6956 MB / 382.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.3178, allocations: 3.094 kB / 382.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001233/0.319, allocations: 0.7599 MB / 383.3 MB, free: 17.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001593/0.3192, allocations: 399 kB / 383.7 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.3192, allocations: 10.62 kB / 383.7 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001629/0.3194, allocations: 43.8 kB / 383.7 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005651/0.32, allocations: 172.9 kB / 383.9 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007224/0.3207, allocations: 1.303 MB / 385.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005779/0.3213, allocations: 42.61 kB / 385.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-05/0.3214, allocations: 35.67 kB / 385.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.242e-06/0.3214, allocations: 3.469 kB / 385.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009792/0.3224, allocations: 0.6136 MB / 385.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.3224, allocations: 14.44 kB / 385.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.232e-05/0.3225, allocations: 34.84 kB / 386 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005193/0.323, allocations: 166.9 kB / 386.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000611/0.3236, allocations: 1.289 MB / 387.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005315/0.3242, allocations: 35.22 kB / 387.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-05/0.3242, allocations: 34.42 kB / 387.5 MB, free: 14.02 MB / 302.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.0004943/0.3247, allocations: 343 kB / 387.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.3249, allocations: 93.97 kB / 387.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008533/0.3258, allocations: 448.7 kB / 388.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3258, allocations: 8.188 kB / 388.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3258, allocations: 0.9688 kB / 388.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.3258, allocations: 2.625 kB / 388.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002298/0.3281, allocations: 1.4 MB / 389.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.3281, allocations: 0.9688 kB / 389.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003794/0.3285, allocations: 82.5 kB / 389.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.23e-05/0.3286, allocations: 21.95 kB / 389.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.3287, allocations: 14.28 kB / 389.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006773/0.3294, allocations: 1.272 MB / 391.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.3294, allocations: 2.906 kB / 391.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.3305, allocations: 0.7334 MB / 391.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003098/0.3308, allocations: 203 kB / 392.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.52e-05/0.3309, allocations: 9.781 kB / 392.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/0.3313, allocations: 32 kB / 392.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.636e-05/0.3314, allocations: 25.72 kB / 392.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-05/0.3315, allocations: 21.59 kB / 392.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009564/0.3324, allocations: 0.6039 MB / 392.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3324, allocations: 0 / 392.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001416/0.3339, allocations: 353 kB / 393.1 MB, free: 10.41 MB / 302.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.000204/0.3341, allocations: 122.2 kB / 393.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.3357, allocations: 0.9812 MB / 394.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3358, allocations: 4.188 kB / 394.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003572/0.3361, allocations: 294.6 kB / 394.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.3375, allocations: 219.2 kB / 394.7 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.3403, allocations: 2.345 MB / 397.1 MB, free: 7.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/0.3407, allocations: 1.022 MB / 398.1 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005193/0.3413, allocations: 124.1 kB / 398.2 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.3414, allocations: 57.34 kB / 398.3 MB, free: 7.074 MB / 302.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3414, allocations: 0 / 398.3 MB, free: 7.074 MB / 302.1 MB Notification: Performance of Templates: time 0.01627/0.3577, allocations: 10.09 MB / 408.3 MB, free: 14.54 MB / 318.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/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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches