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/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_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/ModelicaServices trunk/package.mo): time 0.001281/0.001281, allocations: 112.4 kB / 18.45 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 208 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 63.89 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2339, allocations: 50.54 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01201/0.2459, allocations: 12.16 MB / 422.1 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006282/0.2523, allocations: 3.311 MB / 425.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001678/0.254, allocations: 39.88 kB / 425.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001942/0.256, allocations: 0.6607 MB / 426.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002292/0.2583, allocations: 0.7286 MB / 426.8 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009279/0.2592, allocations: 403.6 kB / 427.2 MB, free: 220 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00275/0.262, allocations: 2.416 MB / 429.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.2633, allocations: 0.9891 MB / 430.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.2647, allocations: 0.9183 MB / 431.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001193/0.2659, allocations: 0.98 MB / 432.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000295/0.2662, allocations: 232 kB / 432.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005005/0.2667, allocations: 264 kB / 433 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002891/0.267, allocations: 462.3 kB / 433.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009097/0.2679, allocations: 1.077 MB / 434.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002538/0.2705, allocations: 2.83 MB / 437.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2705, allocations: 0 / 437.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.2705, allocations: 3.984 kB / 437.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.208e-05/0.2706, allocations: 0 / 437.4 MB, free: 5.98 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003688/0.2743, allocations: 2.156 MB / 439.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2743, allocations: 12.03 kB / 439.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009002/0.2752, allocations: 278.4 kB / 439.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/0.277, allocations: 1.123 MB / 440.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.382e-05/0.2771, allocations: 115.5 kB / 441.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002141/0.2773, allocations: 159.8 kB / 441.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00258/0.2799, allocations: 1.512 MB / 442.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.111e-05/0.28, allocations: 11.89 kB / 442.7 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.2801, allocations: 67.94 kB / 442.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/0.2802, allocations: 36 kB / 442.8 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002015/0.2822, allocations: 1.049 MB / 443.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008122/0.2903, allocations: 6.222 MB / 450.1 MB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.2919, allocations: 0.6037 MB / 450.7 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009116/0.2929, allocations: 471.4 kB / 451.2 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.357e-05/0.2929, allocations: 16.5 kB / 451.2 MB, free: 7.676 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.2929, allocations: 39.12 kB / 451.2 MB, free: 7.629 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.405e-06/0.293, allocations: 0 / 451.2 MB, free: 7.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004947/0.2979, allocations: 2.372 MB / 453.6 MB, free: 5.168 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.298, allocations: 115.5 kB / 453.7 MB, free: 5.031 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/0.2997, allocations: 1.306 MB / 455 MB, free: 3.711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.36e-05/0.2997, allocations: 41.7 kB / 455.1 MB, free: 3.664 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005328/0.3003, allocations: 0.8492 MB / 455.9 MB, free: 2.805 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.3004, allocations: 260.3 kB / 456.2 MB, free: 2.547 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000253/0.3007, allocations: 202.7 kB / 456.4 MB, free: 2.344 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3008, allocations: 349.9 kB / 456.7 MB, free: 1.996 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005639/0.3014, allocations: 286.5 kB / 457 MB, free: 1.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008337/0.3022, allocations: 0.7342 MB / 457.7 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.3037, allocations: 1.096 MB / 458.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.3037, allocations: 4 kB / 458.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002333/0.3061, allocations: 1.26 MB / 460.1 MB, free: 14.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.3061, allocations: 16.09 kB / 460.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/0.3061, allocations: 16 kB / 460.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004948/0.3066, allocations: 126.5 kB / 460.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008338/0.3075, allocations: 259.6 kB / 460.5 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003718/0.3112, allocations: 4.634 MB / 465.1 MB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.3123, allocations: 67.94 kB / 465.2 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.367e-05/0.3124, allocations: 52 kB / 465.2 MB, free: 8.586 MB / 382.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.0005699/0.313, allocations: 361.3 kB / 465.6 MB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.3132, allocations: 134.3 kB / 465.7 MB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/0.3149, allocations: 0.8335 MB / 466.6 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.315, allocations: 7.938 kB / 466.6 MB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.315, allocations: 4 kB / 466.6 MB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.315, allocations: 3.984 kB / 466.6 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003711/0.3187, allocations: 2.335 MB / 468.9 MB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.3187, allocations: 4 kB / 468.9 MB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005719/0.3193, allocations: 127.8 kB / 469 MB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004525/0.3198, allocations: 134.5 kB / 469.2 MB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-05/0.3198, allocations: 19.98 kB / 469.2 MB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004126/0.324, allocations: 4.784 MB / 474 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.75e-06/0.324, allocations: 11.88 kB / 474 MB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.3266, allocations: 1.292 MB / 475.3 MB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005798/0.3272, allocations: 283.3 kB / 475.6 MB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/0.3274, allocations: 20 kB / 475.6 MB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007326/0.3282, allocations: 39.97 kB / 475.6 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.3283, allocations: 64.3 kB / 475.7 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.3284, allocations: 28 kB / 475.7 MB, free: 13.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001401/0.3298, allocations: 0.8781 MB / 476.6 MB, free: 12.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3298, allocations: 0 / 476.6 MB, free: 12.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001346/0.3311, allocations: 332 kB / 476.9 MB, free: 12.25 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.0002749/0.3314, allocations: 135.2 kB / 477 MB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002184/0.3336, allocations: 1.124 MB / 478.2 MB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3336, allocations: 0 / 478.2 MB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.3348, allocations: 0.711 MB / 478.9 MB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002047/0.3368, allocations: 371.1 kB / 479.2 MB, free: 9.848 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00648/0.3433, allocations: 2.943 MB / 482.2 MB, free: 6.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/0.3446, allocations: 1.214 MB / 483.4 MB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004264/0.345, allocations: 95.42 kB / 483.5 MB, free: 5.484 MB / 398.1 MB Notification: Performance of SimCode: time 2.765e-06/0.3451, allocations: 3.938 kB / 483.5 MB, free: 5.48 MB / 398.1 MB Notification: Performance of Templates: time 0.04581/0.3909, allocations: 41.08 MB / 0.5123 GB, free: 12.43 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches