Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002103/0.002103, allocations: 213.1 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.458/1.458, allocations: 230.6 MB / 258.2 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 43.92 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2231, allocations: 53.37 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01299/0.2361, allocations: 10.24 MB / 442.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006316/0.2424, allocations: 3.089 MB / 445.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.2439, allocations: 39.88 kB / 445.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001852/0.2458, allocations: 0.6168 MB / 446.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002246/0.248, allocations: 0.7251 MB / 447.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008849/0.2489, allocations: 415.4 kB / 447.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002832/0.2517, allocations: 2.242 MB / 449.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001013/0.2528, allocations: 0.6534 MB / 450.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.2541, allocations: 0.8756 MB / 451.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001166/0.2552, allocations: 0.9138 MB / 452.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002643/0.2555, allocations: 220 kB / 452.4 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004314/0.2559, allocations: 252 kB / 452.6 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003545/0.2563, allocations: 434.5 kB / 453 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008726/0.2571, allocations: 0.8244 MB / 453.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002906/0.2601, allocations: 2.712 MB / 456.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2601, allocations: 0 / 456.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2601, allocations: 0 / 456.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.379e-05/0.2601, allocations: 0 / 456.6 MB, free: 14.34 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003788/0.2639, allocations: 2.033 MB / 458.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.2639, allocations: 12.03 kB / 458.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008308/0.2648, allocations: 259.6 kB / 458.9 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001807/0.2666, allocations: 0.9725 MB / 459.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.2667, allocations: 115.5 kB / 459.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002313/0.2669, allocations: 167.8 kB / 460.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002633/0.2695, allocations: 1.588 MB / 461.7 MB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.295e-05/0.2696, allocations: 7.938 kB / 461.7 MB, free: 9.016 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/0.2697, allocations: 68 kB / 461.8 MB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.805e-05/0.2698, allocations: 36 kB / 461.8 MB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/0.2716, allocations: 0.9707 MB / 462.8 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008/0.2796, allocations: 5.714 MB / 468.5 MB, free: 1.891 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000845/0.2805, allocations: 365.4 kB / 468.8 MB, free: 1.523 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000426/0.2809, allocations: 202.1 kB / 469 MB, free: 1.324 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.2809, allocations: 12.38 kB / 469.1 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005657/0.2815, allocations: 328.2 kB / 469.4 MB, free: 0.957 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.394e-06/0.2815, allocations: 0 / 469.4 MB, free: 0.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003245/0.2848, allocations: 1.537 MB / 470.9 MB, free: 15.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.2849, allocations: 166.7 kB / 471.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.2864, allocations: 1.114 MB / 472.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.2864, allocations: 33.7 kB / 472.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007439/0.2872, allocations: 0.9043 MB / 473.1 MB, free: 13.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.2873, allocations: 218.2 kB / 473.3 MB, free: 12.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002872/0.2876, allocations: 218.8 kB / 473.6 MB, free: 12.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.2878, allocations: 353.9 kB / 473.9 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004753/0.2883, allocations: 260.1 kB / 474.2 MB, free: 12.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009827/0.2892, allocations: 0.9367 MB / 475.1 MB, free: 10.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/0.2907, allocations: 1.106 MB / 476.2 MB, free: 9.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.2907, allocations: 8 kB / 476.2 MB, free: 9.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00205/0.2927, allocations: 1.189 MB / 477.4 MB, free: 8.223 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.048e-05/0.2928, allocations: 41.69 kB / 477.4 MB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.2928, allocations: 20 kB / 477.5 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000241/0.293, allocations: 70.23 kB / 477.5 MB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008402/0.2939, allocations: 271.5 kB / 477.8 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002032/0.2959, allocations: 2.524 MB / 480.3 MB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009074/0.2968, allocations: 72.19 kB / 480.4 MB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-05/0.2969, allocations: 60 kB / 480.4 MB, free: 4.961 MB / 382.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.0005675/0.2975, allocations: 355.4 kB / 480.8 MB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.2976, allocations: 123.2 kB / 480.9 MB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.2987, allocations: 0.5418 MB / 481.5 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2987, allocations: 4 kB / 481.5 MB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.2987, allocations: 0 / 481.5 MB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.2987, allocations: 3.984 kB / 481.5 MB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.3012, allocations: 1.552 MB / 483 MB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.762e-06/0.3012, allocations: 4 kB / 483 MB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004577/0.3017, allocations: 103.9 kB / 483.1 MB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001607/0.3019, allocations: 50.11 kB / 483.2 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.3019, allocations: 23.92 kB / 483.2 MB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001903/0.3038, allocations: 2.489 MB / 485.7 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.3038, allocations: 4 kB / 485.7 MB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.3052, allocations: 0.9139 MB / 486.6 MB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004069/0.3056, allocations: 155.2 kB / 486.7 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.3058, allocations: 16 kB / 486.8 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005333/0.3063, allocations: 36.03 kB / 486.8 MB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.3064, allocations: 55.8 kB / 486.9 MB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.511e-05/0.3065, allocations: 23.98 kB / 486.9 MB, free: 14.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001028/0.3075, allocations: 0.7161 MB / 487.6 MB, free: 13.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3075, allocations: 3.938 kB / 487.6 MB, free: 13.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001112/0.3086, allocations: 303.9 kB / 487.9 MB, free: 13.1 MB / 398.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.0002247/0.3088, allocations: 131.2 kB / 488 MB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.3104, allocations: 0.9335 MB / 489 MB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3104, allocations: 0 / 489 MB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00066/0.311, allocations: 442.7 kB / 489.4 MB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.3124, allocations: 320.6 kB / 489.7 MB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00413/0.3165, allocations: 2.573 MB / 492.3 MB, free: 8.562 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006536/0.3172, allocations: 0.5999 MB / 492.9 MB, free: 7.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002096/0.3174, allocations: 91.42 kB / 493 MB, free: 7.836 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3174, allocations: 0 / 493 MB, free: 7.836 MB / 398.1 MB Notification: Performance of Templates: time 0.03891/0.3563, allocations: 31.64 MB / 0.5123 GB, free: 8.227 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.80903561899322]