Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 109.4 kB / 18.4 MB, free: 4.688 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.0009895/0.0009897, allocations: 187.1 kB / 19.33 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 51.94 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07472/0.07594, allocations: 46.62 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.1636/0.2396, allocations: 11.69 MB / 387.5 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004951/0.2446, allocations: 3.218 MB / 390.7 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.2459, allocations: 38.84 kB / 390.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001615/0.2475, allocations: 0.6479 MB / 391.4 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001831/0.2493, allocations: 0.6703 MB / 392.1 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008632/0.2502, allocations: 406.2 kB / 392.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002363/0.2526, allocations: 2.244 MB / 394.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001177/0.2538, allocations: 0.9942 MB / 395.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.2549, allocations: 0.8443 MB / 396.6 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009044/0.2558, allocations: 0.9107 MB / 397.5 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002498/0.2561, allocations: 216.3 kB / 397.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004615/0.2566, allocations: 262.7 kB / 397.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002451/0.2568, allocations: 431.2 kB / 398.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007587/0.2576, allocations: 1.017 MB / 399.4 MB, free: 48 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002922/0.2605, allocations: 2.68 MB / 402.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2605, allocations: 0 / 402.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2605, allocations: 0 / 402.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.953e-05/0.2606, allocations: 0.9375 kB / 402.1 MB, free: 15.03 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003548/0.2641, allocations: 2.057 MB / 404.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2642, allocations: 9.625 kB / 404.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007383/0.2649, allocations: 261.4 kB / 404.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0016/0.2665, allocations: 1.044 MB / 405.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.199e-05/0.2666, allocations: 121 kB / 405.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001876/0.2668, allocations: 161.6 kB / 405.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/0.2691, allocations: 1.478 MB / 407.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.563e-05/0.2692, allocations: 15.27 kB / 407.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000124/0.2693, allocations: 62.5 kB / 407.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/0.2693, allocations: 38.12 kB / 407.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.271, allocations: 0.98 MB / 408.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007305/0.2783, allocations: 6.512 MB / 414.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007629/0.2791, allocations: 403.9 kB / 415.2 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000395/0.2795, allocations: 217.3 kB / 415.4 MB, free: 5.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.524e-05/0.2796, allocations: 9.484 kB / 415.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004665/0.2801, allocations: 272.8 kB / 415.7 MB, free: 5.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.124e-06/0.2801, allocations: 4 kB / 415.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.003098/0.2832, allocations: 1.755 MB / 417.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.704e-05/0.2833, allocations: 166.8 kB / 417.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001485/0.2848, allocations: 1.269 MB / 418.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.2848, allocations: 36.45 kB / 418.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000603/0.2854, allocations: 0.873 MB / 419.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.2856, allocations: 204.8 kB / 420 MB, free: 1.914 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.2858, allocations: 225.8 kB / 420.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.286, allocations: 355.8 kB / 420.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004163/0.2864, allocations: 236.5 kB / 420.8 MB, free: 1.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007191/0.2871, allocations: 0.806 MB / 421.6 MB, free: 420 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.2883, allocations: 1.118 MB / 422.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.2883, allocations: 5.5 kB / 422.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001774/0.2901, allocations: 1.17 MB / 423.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.2901, allocations: 41.7 kB / 423.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.2902, allocations: 20 kB / 423.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002105/0.2904, allocations: 69.58 kB / 424 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007013/0.2911, allocations: 259.6 kB / 424.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/0.2927, allocations: 2.784 MB / 427 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009746/0.2937, allocations: 79.94 kB / 427.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.496e-05/0.2938, allocations: 60 kB / 427.2 MB, free: 10.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005125/0.2943, allocations: 349.3 kB / 427.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.2945, allocations: 134.4 kB / 427.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009243/0.2954, allocations: 0.5528 MB / 428.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2954, allocations: 4 kB / 428.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.2954, allocations: 0 / 428.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.2955, allocations: 7.984 kB / 428.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002419/0.2979, allocations: 1.87 MB / 430.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.2979, allocations: 4 kB / 430.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003957/0.2983, allocations: 104.3 kB / 430.2 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.2984, allocations: 41.7 kB / 430.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.2985, allocations: 19.94 kB / 430.2 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00154/0.3, allocations: 2.741 MB / 433 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.3, allocations: 11.92 kB / 433 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.3013, allocations: 0.9162 MB / 433.9 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003505/0.3016, allocations: 259.5 kB / 434.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.3018, allocations: 20 kB / 434.2 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005004/0.3023, allocations: 35.97 kB / 434.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.173e-05/0.3024, allocations: 51.66 kB / 434.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.478e-05/0.3024, allocations: 20 kB / 434.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001003/0.3034, allocations: 0.85 MB / 435.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.3034, allocations: 4 kB / 435.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001019/0.3045, allocations: 303.9 kB / 435.4 MB, free: 1.938 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (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.0001951/0.3047, allocations: 139.1 kB / 435.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.306, allocations: 0.9184 MB / 436.5 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.306, allocations: 4.188 kB / 436.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005608/0.3065, allocations: 453.4 kB / 436.9 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/0.3079, allocations: 338.1 kB / 437.3 MB, free: 40 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003443/0.3113, allocations: 2.552 MB / 439.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006228/0.312, allocations: 1.178 MB / 441 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.3122, allocations: 91.44 kB / 441.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of SimCode: time 2.014e-06/0.3122, allocations: 0 / 441.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of Templates: time 0.03192/0.3441, allocations: 31.69 MB / 472.8 MB, free: 12.35 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches