Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001795/0.001795, allocations: 120.5 kB / 18.41 MB, free: 4.664 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.002042/0.002042, allocations: 190.7 kB / 21.35 MB, free: 1.734 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.526/1.526, allocations: 222.9 MB / 247 MB, free: 4.203 MB / 190.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 51.92 kB / 358.7 MB, free: 8.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1016, allocations: 49.44 MB / 408.1 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0143/0.1159, allocations: 12.15 MB / 420.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006607/0.1226, allocations: 3.284 MB / 423.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001556/0.1241, allocations: 39.88 kB / 423.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00203/0.1262, allocations: 0.6635 MB / 424.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002386/0.1286, allocations: 0.7324 MB / 425 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.1297, allocations: 399.5 kB / 425.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003462/0.1332, allocations: 2.423 MB / 427.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/0.1347, allocations: 0.9892 MB / 428.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.1362, allocations: 0.895 MB / 429.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001456/0.1377, allocations: 0.98 MB / 430.7 MB, free: 136 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.184/0.3217, allocations: 228.8 kB / 430.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009011/0.3226, allocations: 263.8 kB / 431.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002738/0.3229, allocations: 461.7 kB / 431.6 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000898/0.3238, allocations: 1.073 MB / 432.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003135/0.3269, allocations: 2.844 MB / 435.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.327, allocations: 0.6875 kB / 435.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.327, allocations: 3.156 kB / 435.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.367e-05/0.327, allocations: 0.6562 kB / 435.5 MB, free: 8.629 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.003763/0.3308, allocations: 2.203 MB / 437.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.3309, allocations: 9.625 kB / 437.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001003/0.3319, allocations: 292.7 kB / 438 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001841/0.3337, allocations: 1.135 MB / 439.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.3338, allocations: 114.3 kB / 439.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/0.334, allocations: 162.6 kB / 439.4 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002528/0.3366, allocations: 1.506 MB / 440.9 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.563e-05/0.3366, allocations: 12.58 kB / 440.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.3368, allocations: 65 kB / 441 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.512e-05/0.3368, allocations: 39.31 kB / 441 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002073/0.3389, allocations: 1.048 MB / 442.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00753/0.3464, allocations: 6.252 MB / 448.3 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.3479, allocations: 0.6112 MB / 448.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008996/0.3489, allocations: 459.8 kB / 449.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-05/0.3489, allocations: 8.562 kB / 449.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.3489, allocations: 42.16 kB / 449.4 MB, free: 4.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.374e-06/0.349, allocations: 0 / 449.4 MB, free: 4.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.004826/0.3538, allocations: 2.395 MB / 451.8 MB, free: 3.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.3538, allocations: 111.5 kB / 451.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/0.3555, allocations: 1.308 MB / 453.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.683e-05/0.3555, allocations: 38.8 kB / 453.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004097/0.356, allocations: 0.8722 MB / 454.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.3561, allocations: 273.1 kB / 454.4 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002714/0.3564, allocations: 206 kB / 454.6 MB, free: 1.938 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.611e-05/0.3564, allocations: 355.5 kB / 455 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005451/0.357, allocations: 282.3 kB / 455.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007143/0.3577, allocations: 0.7327 MB / 456 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001326/0.3591, allocations: 1.092 MB / 457.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.3591, allocations: 4.062 kB / 457.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002508/0.3616, allocations: 1.276 MB / 458.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.3616, allocations: 11.22 kB / 458.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.3617, allocations: 15.75 kB / 458.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005288/0.3622, allocations: 133 kB / 458.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008479/0.3631, allocations: 262.6 kB / 458.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004968/0.368, allocations: 4.637 MB / 463.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.3694, allocations: 57.3 kB / 463.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.557e-05/0.3695, allocations: 56.25 kB / 463.5 MB, free: 10.83 MB / 366.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.0007666/0.3703, allocations: 358.8 kB / 463.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002329/0.3705, allocations: 152.5 kB / 464 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/0.3724, allocations: 0.8293 MB / 464.8 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3724, allocations: 10.34 kB / 464.9 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3724, allocations: 0 / 464.9 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.3724, allocations: 13.92 kB / 464.9 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004082/0.3765, allocations: 2.334 MB / 467.2 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.3765, allocations: 6.859 kB / 467.2 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005464/0.3771, allocations: 125.6 kB / 467.3 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004548/0.3776, allocations: 132.4 kB / 467.5 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.524e-05/0.3776, allocations: 19.77 kB / 467.5 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004884/0.3825, allocations: 4.785 MB / 472.3 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.3826, allocations: 8.281 kB / 472.3 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002671/0.3852, allocations: 1.301 MB / 473.6 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000591/0.3858, allocations: 290.6 kB / 473.9 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/0.386, allocations: 25.7 kB / 473.9 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006698/0.3867, allocations: 44.28 kB / 473.9 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.3869, allocations: 56.81 kB / 474 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-05/0.3869, allocations: 26.61 kB / 474 MB, free: 2.387 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001247/0.3882, allocations: 0.8804 MB / 474.9 MB, free: 1.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3882, allocations: 0 / 474.9 MB, free: 1.898 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001261/0.3894, allocations: 329 kB / 475.2 MB, free: 1.867 MB / 366.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.0002975/0.3897, allocations: 144.5 kB / 475.4 MB, free: 1.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.3917, allocations: 1.121 MB / 476.5 MB, free: 1.086 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.3918, allocations: 3.188 kB / 476.5 MB, free: 1.086 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.3929, allocations: 0.7091 MB / 477.2 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/0.3947, allocations: 370.9 kB / 477.6 MB, free: 408 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005842/0.4006, allocations: 2.995 MB / 480.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/0.4017, allocations: 1.217 MB / 481.8 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003531/0.4021, allocations: 99.42 kB / 481.9 MB, free: 12.42 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4021, allocations: 7.938 kB / 481.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of Templates: time 0.0514/0.4535, allocations: 41.06 MB / 0.5107 GB, free: 3.414 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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: 10.575223639025353]