Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 187.3 kB / 24.45 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_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.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 48.02 kB / 371.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2231, allocations: 52.19 MB / 423.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01306/0.2362, allocations: 10.22 MB / 434.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005912/0.2421, allocations: 3.054 MB / 437.1 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.2431, allocations: 39.88 kB / 437.1 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001637/0.2447, allocations: 0.6169 MB / 437.8 MB, free: 476 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001754/0.2465, allocations: 0.7251 MB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008382/0.2473, allocations: 399.6 kB / 438.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002545/0.2499, allocations: 2.261 MB / 441.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009727/0.2509, allocations: 0.6026 MB / 441.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.252, allocations: 0.8639 MB / 442.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001033/0.253, allocations: 0.785 MB / 443.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002695/0.2533, allocations: 216 kB / 443.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005433/0.2538, allocations: 263.9 kB / 443.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003748/0.2542, allocations: 430.5 kB / 444.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009199/0.2551, allocations: 0.8244 MB / 445.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002903/0.258, allocations: 2.704 MB / 447.8 MB, free: 6.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.258, allocations: 0 / 447.8 MB, free: 6.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.258, allocations: 0 / 447.8 MB, free: 6.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.091e-05/0.258, allocations: 4 kB / 447.8 MB, free: 6.332 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003444/0.2615, allocations: 2.036 MB / 449.8 MB, free: 4.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.2615, allocations: 8.031 kB / 449.9 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000735/0.2623, allocations: 267.5 kB / 450.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.2639, allocations: 0.9687 MB / 451.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.514e-05/0.264, allocations: 115.4 kB / 451.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002154/0.2643, allocations: 171.8 kB / 451.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002472/0.2667, allocations: 1.588 MB / 453 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.985e-05/0.2668, allocations: 7.953 kB / 453 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/0.2669, allocations: 64 kB / 453 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.368e-05/0.2669, allocations: 40 kB / 453.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001815/0.2687, allocations: 0.9707 MB / 454 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007778/0.2765, allocations: 5.702 MB / 459.7 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008364/0.2774, allocations: 376.6 kB / 460.1 MB, free: 9.512 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004278/0.2778, allocations: 198.1 kB / 460.3 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.429e-05/0.2778, allocations: 4.438 kB / 460.3 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005546/0.2784, allocations: 328.2 kB / 460.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.555e-06/0.2784, allocations: 0 / 460.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003218/0.2816, allocations: 1.545 MB / 462.2 MB, free: 7.371 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.2817, allocations: 162.7 kB / 462.3 MB, free: 7.176 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.2832, allocations: 1.118 MB / 463.4 MB, free: 6.043 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.2833, allocations: 37.7 kB / 463.5 MB, free: 6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007143/0.284, allocations: 0.8966 MB / 464.4 MB, free: 5.094 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.2841, allocations: 210.3 kB / 464.6 MB, free: 4.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002835/0.2844, allocations: 222.8 kB / 464.8 MB, free: 4.664 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.2846, allocations: 357.9 kB / 465.2 MB, free: 4.309 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004805/0.2851, allocations: 260.1 kB / 465.4 MB, free: 4.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009872/0.2861, allocations: 0.9327 MB / 466.3 MB, free: 2.812 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.2875, allocations: 1.113 MB / 467.5 MB, free: 1.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.2875, allocations: 8 kB / 467.5 MB, free: 1.422 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002011/0.2896, allocations: 1.185 MB / 468.6 MB, free: 216 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.273e-05/0.2896, allocations: 41.7 kB / 468.7 MB, free: 168 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/0.2896, allocations: 20 kB / 468.7 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002336/0.2899, allocations: 66.34 kB / 468.8 MB, free: 76 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000819/0.2907, allocations: 267.5 kB / 469 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/0.2928, allocations: 2.529 MB / 471.6 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000881/0.2936, allocations: 75.92 kB / 471.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.523e-05/0.2937, allocations: 56 kB / 471.7 MB, free: 12.95 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.0005914/0.2943, allocations: 361.3 kB / 472 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.2944, allocations: 123.2 kB / 472.2 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001064/0.2955, allocations: 0.534 MB / 472.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.2955, allocations: 8 kB / 472.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2955, allocations: 3.984 kB / 472.7 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2955, allocations: 0 / 472.7 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002579/0.2981, allocations: 1.54 MB / 474.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.2981, allocations: 4 kB / 474.3 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004579/0.2986, allocations: 99.83 kB / 474.3 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001575/0.2987, allocations: 50.16 kB / 474.4 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.407e-05/0.2988, allocations: 16 kB / 474.4 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/0.3007, allocations: 2.505 MB / 476.9 MB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.3007, allocations: 7.938 kB / 476.9 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.3022, allocations: 0.9062 MB / 477.8 MB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004107/0.3026, allocations: 159.2 kB / 478 MB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.3027, allocations: 16 kB / 478 MB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/0.3032, allocations: 36.06 kB / 478 MB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.3033, allocations: 55.8 kB / 478.1 MB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.806e-05/0.3034, allocations: 23.98 kB / 478.1 MB, free: 6.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001054/0.3044, allocations: 0.7122 MB / 478.8 MB, free: 5.402 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3044, allocations: 0 / 478.8 MB, free: 5.402 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001118/0.3055, allocations: 307.9 kB / 479.1 MB, free: 5.102 MB / 382.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.0002389/0.3058, allocations: 139 kB / 479.3 MB, free: 4.957 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.3074, allocations: 0.9258 MB / 480.2 MB, free: 3.988 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3074, allocations: 0 / 480.2 MB, free: 3.988 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006516/0.308, allocations: 446.6 kB / 480.6 MB, free: 3.527 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.3093, allocations: 319.9 kB / 480.9 MB, free: 3.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004314/0.3137, allocations: 2.581 MB / 483.5 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006905/0.3143, allocations: 0.5922 MB / 484.1 MB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.3146, allocations: 87.44 kB / 484.2 MB, free: 15.83 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3146, allocations: 0 / 484.2 MB, free: 15.83 MB / 398.1 MB Notification: Performance of Templates: time 0.04007/0.3546, allocations: 31.63 MB / 0.5037 GB, free: 252 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.65610174415633]