Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001608/0.001608, allocations: 117.6 kB / 17.83 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001841/0.001841, allocations: 211.9 kB / 18.79 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.484/1.484, allocations: 230.4 MB / 250 MB, free: 9.004 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 75.77 kB / 367.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.272, allocations: 53.29 MB / 420.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01453/0.2865, allocations: 12.22 MB / 432.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006501/0.293, allocations: 3.308 MB / 436.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001572/0.2946, allocations: 35.94 kB / 436.2 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001996/0.2966, allocations: 0.6985 MB / 436.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00252/0.2991, allocations: 0.7872 MB / 437.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009044/0.3, allocations: 399.5 kB / 438.1 MB, free: 6.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003368/0.3034, allocations: 2.416 MB / 440.5 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.3045, allocations: 0.6496 MB / 441.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001533/0.306, allocations: 0.9222 MB / 442.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/0.3074, allocations: 0.9839 MB / 443.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003055/0.3077, allocations: 228 kB / 443.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005109/0.3082, allocations: 271.9 kB / 443.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004128/0.3086, allocations: 450.4 kB / 444 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001292/0.3099, allocations: 1.077 MB / 445.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003534/0.3134, allocations: 2.84 MB / 447.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.439e-05/0.3135, allocations: 3.984 kB / 447.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3135, allocations: 0 / 447.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.041e-05/0.3135, allocations: 4 kB / 447.9 MB, free: 12.91 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.00439/0.3179, allocations: 2.212 MB / 450.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.575e-05/0.318, allocations: 12.03 kB / 450.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/0.319, allocations: 287.5 kB / 450.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002049/0.3211, allocations: 1.131 MB / 451.6 MB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.329e-05/0.3211, allocations: 115.5 kB / 451.7 MB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002286/0.3214, allocations: 167.8 kB / 451.8 MB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002768/0.3241, allocations: 1.508 MB / 453.3 MB, free: 7.309 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.975e-05/0.3242, allocations: 11.92 kB / 453.4 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/0.3243, allocations: 68 kB / 453.4 MB, free: 7.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.166e-05/0.3244, allocations: 39.94 kB / 453.5 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002165/0.3265, allocations: 1.049 MB / 454.5 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009019/0.3355, allocations: 6.24 MB / 460.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.3371, allocations: 0.5648 MB / 461.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009563/0.3381, allocations: 434.2 kB / 461.7 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.807e-05/0.3381, allocations: 4.562 kB / 461.7 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.3382, allocations: 43.12 kB / 461.8 MB, free: 14.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 3.156e-06/0.3382, allocations: 0 / 461.8 MB, free: 14.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.00532/0.3435, allocations: 2.398 MB / 464.2 MB, free: 12.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.697e-05/0.3436, allocations: 111.5 kB / 464.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001896/0.3455, allocations: 1.31 MB / 465.6 MB, free: 10.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.416e-05/0.3455, allocations: 33.7 kB / 465.6 MB, free: 10.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006972/0.3462, allocations: 0.8749 MB / 466.5 MB, free: 9.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002322/0.3465, allocations: 269.8 kB / 466.8 MB, free: 9.414 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003121/0.3468, allocations: 206.8 kB / 467 MB, free: 9.207 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.347, allocations: 349.9 kB / 467.3 MB, free: 8.859 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006164/0.3476, allocations: 286.5 kB / 467.6 MB, free: 8.578 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.3486, allocations: 0.7342 MB / 468.3 MB, free: 7.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001728/0.3503, allocations: 1.092 MB / 469.4 MB, free: 6.328 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.3503, allocations: 4 kB / 469.4 MB, free: 6.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002632/0.353, allocations: 1.261 MB / 470.7 MB, free: 5.047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.353, allocations: 12 kB / 470.7 MB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/0.353, allocations: 16 kB / 470.7 MB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005404/0.3535, allocations: 142.9 kB / 470.9 MB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008787/0.3544, allocations: 255.6 kB / 471.1 MB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004637/0.3591, allocations: 4.635 MB / 475.7 MB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.3601, allocations: 63.86 kB / 475.8 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.702e-05/0.3602, allocations: 56 kB / 475.9 MB, free: 15.44 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006532/0.3608, allocations: 357.5 kB / 476.2 MB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.361, allocations: 143.1 kB / 476.3 MB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.3629, allocations: 0.8256 MB / 477.2 MB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.3629, allocations: 11.94 kB / 477.2 MB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3629, allocations: 3.984 kB / 477.2 MB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3629, allocations: 0 / 477.2 MB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003868/0.3667, allocations: 2.327 MB / 479.5 MB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.832e-06/0.3668, allocations: 4 kB / 479.5 MB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005765/0.3673, allocations: 131.7 kB / 479.6 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004347/0.3678, allocations: 134.9 kB / 479.8 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.783e-05/0.3678, allocations: 19.98 kB / 479.8 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004758/0.3726, allocations: 4.803 MB / 484.6 MB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.3726, allocations: 4 kB / 484.6 MB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002651/0.3752, allocations: 1.301 MB / 485.9 MB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000567/0.3758, allocations: 292 kB / 486.2 MB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/0.376, allocations: 20 kB / 486.2 MB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006145/0.3766, allocations: 35.97 kB / 486.2 MB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.3767, allocations: 68.36 kB / 486.3 MB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.31e-05/0.3767, allocations: 24 kB / 486.3 MB, free: 4.297 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001311/0.3781, allocations: 0.8781 MB / 487.2 MB, free: 3.418 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3781, allocations: 0 / 487.2 MB, free: 3.418 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001178/0.3792, allocations: 335.9 kB / 487.5 MB, free: 3.09 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002404/0.3795, allocations: 131.1 kB / 487.7 MB, free: 2.953 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001967/0.3814, allocations: 1.09 MB / 488.8 MB, free: 1.828 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3814, allocations: 4 kB / 488.8 MB, free: 1.824 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.3825, allocations: 0.6912 MB / 489.5 MB, free: 1.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.3841, allocations: 374.9 kB / 489.8 MB, free: 0.7422 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005459/0.3895, allocations: 2.949 MB / 492.8 MB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009841/0.3905, allocations: 1.217 MB / 494 MB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006771/0.3912, allocations: 175.6 kB / 494.2 MB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002222/0.3914, allocations: 91.36 kB / 494.2 MB, free: 12.2 MB / 414.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3914, allocations: 0 / 494.2 MB, free: 12.2 MB / 414.1 MB Notification: Performance of Templates: time 0.03572/0.4271, allocations: 18.23 MB / 0.5005 GB, free: 10.15 MB / 430.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches