Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 194.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.6 MB / 244.3 MB, free: 6.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009133/0.0009134, allocations: 108.9 kB / 296.4 MB, free: 6.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002564, allocations: 4 kB / 356.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.24, allocations: 51.3 MB / 407.5 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.007108/0.2472, allocations: 10.76 MB / 418.3 MB, free: 16.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003715/0.2509, allocations: 3.113 MB / 421.4 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006635/0.2516, allocations: 31.94 kB / 421.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.2528, allocations: 0.532 MB / 421.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001385/0.2542, allocations: 0.5893 MB / 422.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006289/0.2548, allocations: 255.7 kB / 422.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001686/0.2565, allocations: 2.167 MB / 424.9 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008302/0.2573, allocations: 0.6833 MB / 425.6 MB, free: 9.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008961/0.2583, allocations: 0.7194 MB / 426.4 MB, free: 8.848 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006344/0.2589, allocations: 0.8166 MB / 427.2 MB, free: 8.027 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.2591, allocations: 108 kB / 427.3 MB, free: 7.922 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003386/0.2594, allocations: 151.9 kB / 427.4 MB, free: 7.773 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.2596, allocations: 310.5 kB / 427.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002721/0.2599, allocations: 404.8 kB / 428.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001356/0.2612, allocations: 2.22 MB / 430.3 MB, free: 4.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.2613, allocations: 0 / 430.3 MB, free: 4.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2613, allocations: 0 / 430.3 MB, free: 4.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.908e-05/0.2613, allocations: 0 / 430.3 MB, free: 4.84 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.002822/0.2641, allocations: 1.864 MB / 432.2 MB, free: 2.918 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.2642, allocations: 12.02 kB / 432.2 MB, free: 2.906 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007945/0.265, allocations: 285.4 kB / 432.5 MB, free: 2.625 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001399/0.2664, allocations: 1.068 MB / 433.6 MB, free: 1.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.207e-05/0.2665, allocations: 119.1 kB / 433.7 MB, free: 1.383 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.2666, allocations: 159.9 kB / 433.8 MB, free: 1.227 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002369/0.269, allocations: 1.504 MB / 435.3 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.556e-05/0.2691, allocations: 7.906 kB / 435.3 MB, free: 15.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001268/0.2692, allocations: 60 kB / 435.4 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.21e-05/0.2692, allocations: 44 kB / 435.4 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002046/0.2713, allocations: 1.065 MB / 436.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008779/0.2801, allocations: 6.296 MB / 442.8 MB, free: 7.891 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.2818, allocations: 0.6271 MB / 443.4 MB, free: 7.254 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009203/0.2827, allocations: 463 kB / 443.9 MB, free: 6.801 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.794e-05/0.2828, allocations: 8.562 kB / 443.9 MB, free: 6.793 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.801e-05/0.2828, allocations: 47.06 kB / 443.9 MB, free: 6.734 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 2.866e-06/0.2828, allocations: 0 / 443.9 MB, free: 6.734 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.005563/0.2884, allocations: 2.454 MB / 446.4 MB, free: 4.188 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.751e-05/0.2885, allocations: 111.5 kB / 446.5 MB, free: 4.051 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001928/0.2905, allocations: 1.294 MB / 447.8 MB, free: 2.742 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.622e-05/0.2905, allocations: 41.7 kB / 447.8 MB, free: 2.695 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006493/0.2912, allocations: 0.8454 MB / 448.7 MB, free: 1.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/0.2914, allocations: 256.3 kB / 448.9 MB, free: 1.586 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.345e-05/0.2914, allocations: 24 kB / 449 MB, free: 1.562 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.2916, allocations: 353.9 kB / 449.3 MB, free: 1.211 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005873/0.2922, allocations: 290.5 kB / 449.6 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009777/0.2932, allocations: 0.7421 MB / 450.3 MB, free: 15.97 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007482/0.2939, allocations: 403 kB / 450.7 MB, free: 15.58 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.228e-06/0.294, allocations: 15.89 kB / 450.7 MB, free: 15.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002496/0.2965, allocations: 1.291 MB / 452 MB, free: 14.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.2965, allocations: 12 kB / 452 MB, free: 14.24 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/0.2966, allocations: 16.5 kB / 452.1 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000568/0.2971, allocations: 154.5 kB / 452.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008341/0.298, allocations: 255.6 kB / 452.5 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003794/0.3018, allocations: 4.324 MB / 456.8 MB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00098/0.3028, allocations: 63.88 kB / 456.8 MB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-05/0.3029, allocations: 52 kB / 456.9 MB, free: 8.977 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006221/0.3035, allocations: 357.5 kB / 457.2 MB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001718/0.3037, allocations: 138.4 kB / 457.4 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001723/0.3054, allocations: 0.8609 MB / 458.2 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.3054, allocations: 12 kB / 458.3 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3054, allocations: 7.891 kB / 458.3 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3054, allocations: 3.984 kB / 458.3 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003408/0.3088, allocations: 2.373 MB / 460.6 MB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.3089, allocations: 8.062 kB / 460.6 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005331/0.3094, allocations: 127.8 kB / 460.8 MB, free: 4.949 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004139/0.3098, allocations: 142.4 kB / 460.9 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.864e-05/0.3099, allocations: 19.98 kB / 460.9 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003551/0.3134, allocations: 4.462 MB / 465.4 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3135, allocations: 4 kB / 465.4 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00211/0.3156, allocations: 1.354 MB / 466.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003391/0.3159, allocations: 283.4 kB / 467 MB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.3161, allocations: 16 kB / 467 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006041/0.3167, allocations: 47.97 kB / 467.1 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.265e-05/0.3168, allocations: 64.38 kB / 467.2 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.134e-05/0.3168, allocations: 20 kB / 467.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001059/0.3179, allocations: 0.8703 MB / 468 MB, free: 13.17 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3179, allocations: 0 / 468 MB, free: 13.17 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001003/0.3189, allocations: 328 kB / 468.4 MB, free: 12.85 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001887/0.3191, allocations: 135 kB / 468.5 MB, free: 12.71 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.3207, allocations: 1.133 MB / 469.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3208, allocations: 0 / 469.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000921/0.3217, allocations: 0.7187 MB / 470.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/0.3231, allocations: 351.2 kB / 470.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004645/0.3278, allocations: 3.616 MB / 474.3 MB, free: 6.754 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006855/0.3285, allocations: 1.221 MB / 475.5 MB, free: 5.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002316/0.3287, allocations: 99.42 kB / 475.6 MB, free: 5.406 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3287, allocations: 3.938 kB / 475.6 MB, free: 5.402 MB / 346.7 MB Notification: Performance of Templates: time 0.2092/0.5379, allocations: 40.66 MB / 0.5042 GB, free: 93.68 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches