Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009978/0.0009978, allocations: 101.9 kB / 296.7 MB, free: 6.449 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 55.92 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2246, allocations: 50.45 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009029/0.2337, allocations: 12.06 MB / 419.1 MB, free: 15.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005262/0.239, allocations: 3.287 MB / 422.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001839/0.2409, allocations: 35.94 kB / 422.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002118/0.2431, allocations: 0.567 MB / 423 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003015/0.2461, allocations: 0.6361 MB / 423.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.2472, allocations: 351.8 kB / 424 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002448/0.2496, allocations: 2.31 MB / 426.3 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009344/0.2506, allocations: 0.866 MB / 427.2 MB, free: 7.574 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008431/0.2514, allocations: 0.8128 MB / 428 MB, free: 6.758 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000612/0.2521, allocations: 0.9293 MB / 428.9 MB, free: 5.824 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.2522, allocations: 143.9 kB / 429 MB, free: 5.684 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003275/0.2526, allocations: 172 kB / 429.2 MB, free: 5.516 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.2527, allocations: 374.3 kB / 429.6 MB, free: 5.148 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005833/0.2533, allocations: 0.9872 MB / 430.6 MB, free: 4.156 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001435/0.2548, allocations: 2.721 MB / 433.3 MB, free: 1.426 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2548, allocations: 0 / 433.3 MB, free: 1.426 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2548, allocations: 0 / 433.3 MB, free: 1.426 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.737e-05/0.2548, allocations: 4 kB / 433.3 MB, free: 1.422 MB / 298.7 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.00313/0.258, allocations: 2.16 MB / 435.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.258, allocations: 8.031 kB / 435.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008236/0.2589, allocations: 286.3 kB / 435.7 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001589/0.2605, allocations: 1.099 MB / 436.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.795e-05/0.2605, allocations: 111.5 kB / 436.9 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/0.2607, allocations: 167.8 kB / 437.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002308/0.2631, allocations: 1.504 MB / 438.6 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.402e-05/0.2631, allocations: 7.906 kB / 438.6 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.2632, allocations: 68 kB / 438.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.871e-05/0.2633, allocations: 36 kB / 438.7 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.2652, allocations: 1.053 MB / 439.8 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007363/0.2726, allocations: 6.281 MB / 446.1 MB, free: 4.176 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.274, allocations: 0.6114 MB / 446.7 MB, free: 3.551 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008591/0.2749, allocations: 462.9 kB / 447.1 MB, free: 3.098 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.342e-05/0.2749, allocations: 12.56 kB / 447.1 MB, free: 3.086 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.275, allocations: 39.12 kB / 447.2 MB, free: 3.039 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 2.796e-06/0.275, allocations: 3.938 kB / 447.2 MB, free: 3.035 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.005439/0.2804, allocations: 2.372 MB / 449.5 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.313e-05/0.2805, allocations: 111.5 kB / 449.7 MB, free: 448 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001901/0.2824, allocations: 1.298 MB / 451 MB, free: 15.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.361e-05/0.2825, allocations: 41.7 kB / 451 MB, free: 15.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006553/0.2831, allocations: 0.8531 MB / 451.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.2834, allocations: 264.2 kB / 452.1 MB, free: 13.95 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002793/0.2836, allocations: 202.7 kB / 452.3 MB, free: 13.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.2838, allocations: 349.9 kB / 452.6 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000551/0.2843, allocations: 282.5 kB / 452.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008147/0.2852, allocations: 0.7381 MB / 453.7 MB, free: 12.17 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.2866, allocations: 1.084 MB / 454.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.83e-06/0.2866, allocations: 11.94 kB / 454.8 MB, free: 10.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002241/0.2888, allocations: 1.256 MB / 456 MB, free: 9.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.2889, allocations: 14.81 kB / 456 MB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.2889, allocations: 16 kB / 456 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004673/0.2894, allocations: 134.9 kB / 456.2 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007906/0.2902, allocations: 255.6 kB / 456.4 MB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003478/0.2937, allocations: 4.29 MB / 460.7 MB, free: 4.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009164/0.2946, allocations: 59.88 kB / 460.8 MB, free: 4.422 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.345e-05/0.2947, allocations: 52 kB / 460.8 MB, free: 4.371 MB / 330.7 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.0005532/0.2953, allocations: 358.9 kB / 461.2 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001762/0.2954, allocations: 142.3 kB / 461.3 MB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.2972, allocations: 0.8334 MB / 462.1 MB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.2972, allocations: 4 kB / 462.1 MB, free: 3.012 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2972, allocations: 4 kB / 462.2 MB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.2972, allocations: 3.984 kB / 462.2 MB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003898/0.3011, allocations: 2.334 MB / 464.5 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.3011, allocations: 4 kB / 464.5 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005582/0.3017, allocations: 131.8 kB / 464.6 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004271/0.3021, allocations: 134.9 kB / 464.8 MB, free: 284 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.901e-05/0.3022, allocations: 23.98 kB / 464.8 MB, free: 260 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003975/0.3062, allocations: 4.395 MB / 469.2 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.3062, allocations: 4 kB / 469.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01565/0.3219, allocations: 10.23 MB / 479.4 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004718/0.3224, allocations: 279.4 kB / 479.7 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001777/0.3226, allocations: 23.94 kB / 479.7 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006554/0.3232, allocations: 35.97 kB / 479.7 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.3234, allocations: 64.42 kB / 479.8 MB, free: 168 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.625e-05/0.3234, allocations: 31.94 kB / 479.8 MB, free: 136 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001315/0.3248, allocations: 0.8742 MB / 480.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3248, allocations: 0 / 480.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001539/0.3263, allocations: 472 kB / 481.2 MB, free: 14.8 MB / 362.7 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.0002334/0.3266, allocations: 142 kB / 481.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001923/0.3285, allocations: 1.115 MB / 482.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.3285, allocations: 5.938 kB / 482.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.3295, allocations: 0.703 MB / 483.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/0.3313, allocations: 349.2 kB / 483.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00645/0.3377, allocations: 4.416 MB / 487.9 MB, free: 7.863 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008901/0.3386, allocations: 1.233 MB / 489.1 MB, free: 6.602 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008087/0.3395, allocations: 175.6 kB / 489.3 MB, free: 6.426 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.3398, allocations: 99.41 kB / 489.4 MB, free: 6.332 MB / 362.7 MB Notification: Performance of SimCode: time 5.2e-07/0.3398, allocations: 0 / 489.4 MB, free: 6.332 MB / 362.7 MB Notification: Performance of Templates: time 0.03193/0.3717, allocations: 19.27 MB / 0.4967 GB, free: 3.195 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches