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.001936/0.001936, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.002253/0.002253, allocations: 186 kB / 24.46 MB, free: 3.863 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.442/1.442, allocations: 225.7 MB / 253.3 MB, free: 12.83 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_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.001629/0.001629, allocations: 43.94 kB / 371.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2467, allocations: 52.19 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01454/0.2612, allocations: 10.56 MB / 434.4 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006543/0.2678, allocations: 3.105 MB / 437.5 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001668/0.2695, allocations: 39.88 kB / 437.5 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002318/0.2718, allocations: 0.6439 MB / 438.2 MB, free: 96 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0027/0.2745, allocations: 0.7872 MB / 439 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000957/0.2754, allocations: 399.5 kB / 439.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003481/0.2789, allocations: 2.415 MB / 441.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00118/0.2801, allocations: 0.5993 MB / 442.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001453/0.2815, allocations: 0.9378 MB / 443.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001401/0.2829, allocations: 0.8433 MB / 444.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003391/0.2833, allocations: 232 kB / 444.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005377/0.2838, allocations: 268 kB / 444.6 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004194/0.2842, allocations: 458.3 kB / 445.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.2853, allocations: 0.8789 MB / 446 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003328/0.2886, allocations: 2.856 MB / 448.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.2886, allocations: 0 / 448.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2886, allocations: 0 / 448.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.258e-05/0.2887, allocations: 0 / 448.8 MB, free: 5.359 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.004316/0.293, allocations: 2.129 MB / 451 MB, free: 3.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.293, allocations: 8.031 kB / 451 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000947/0.294, allocations: 291.5 kB / 451.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002569/0.2965, allocations: 1.059 MB / 452.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.2966, allocations: 115.4 kB / 452.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002885/0.2969, allocations: 159.9 kB / 452.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00305/0.3, allocations: 1.605 MB / 454.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.8e-05/0.3, allocations: 7.953 kB / 454.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.3002, allocations: 72 kB / 454.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.69e-05/0.3002, allocations: 36 kB / 454.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002271/0.3025, allocations: 1.041 MB / 455.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009122/0.3116, allocations: 5.422 MB / 460.8 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.3132, allocations: 0.5617 MB / 461.3 MB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009901/0.3142, allocations: 434.6 kB / 461.7 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.67e-05/0.3143, allocations: 8.656 kB / 461.7 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/0.3143, allocations: 43.16 kB / 461.8 MB, free: 7.906 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.515e-06/0.3143, allocations: 0 / 461.8 MB, free: 7.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005461/0.3198, allocations: 2.154 MB / 463.9 MB, free: 5.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.734e-05/0.3199, allocations: 111.5 kB / 464.1 MB, free: 5.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/0.3217, allocations: 1.169 MB / 465.2 MB, free: 4.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.632e-05/0.3218, allocations: 37.7 kB / 465.3 MB, free: 4.367 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007221/0.3225, allocations: 0.8896 MB / 466.1 MB, free: 3.469 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002407/0.3227, allocations: 273.7 kB / 466.4 MB, free: 3.199 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002984/0.323, allocations: 206.8 kB / 466.6 MB, free: 2.992 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.3232, allocations: 353.9 kB / 467 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006482/0.3239, allocations: 282.4 kB / 467.2 MB, free: 2.363 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001121/0.325, allocations: 0.7888 MB / 468 MB, free: 1.348 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001749/0.3267, allocations: 1.092 MB / 469.1 MB, free: 48 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.3267, allocations: 4 kB / 469.1 MB, free: 44 kB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002641/0.3294, allocations: 1.249 MB / 470.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.3294, allocations: 16.48 kB / 470.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/0.3294, allocations: 12 kB / 470.4 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005244/0.33, allocations: 138.5 kB / 470.5 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009174/0.3309, allocations: 255.6 kB / 470.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004321/0.3352, allocations: 4.245 MB / 475 MB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.3363, allocations: 60.2 kB / 475.1 MB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.469e-05/0.3364, allocations: 60 kB / 475.1 MB, free: 9.688 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.0006717/0.3371, allocations: 361.3 kB / 475.5 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002304/0.3373, allocations: 131.2 kB / 475.6 MB, free: 9.195 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.3392, allocations: 0.8164 MB / 476.4 MB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3392, allocations: 8 kB / 476.5 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3392, allocations: 4 kB / 476.5 MB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.3392, allocations: 3.984 kB / 476.5 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004144/0.3433, allocations: 1.961 MB / 478.4 MB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.3433, allocations: 4 kB / 478.4 MB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006097/0.344, allocations: 128.3 kB / 478.5 MB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004724/0.3444, allocations: 134.5 kB / 478.7 MB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.055e-05/0.3445, allocations: 19.98 kB / 478.7 MB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004702/0.3492, allocations: 4.396 MB / 483.1 MB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.3492, allocations: 11.88 kB / 483.1 MB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002651/0.3518, allocations: 1.297 MB / 484.4 MB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005934/0.3524, allocations: 191.1 kB / 484.6 MB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.3526, allocations: 16 kB / 484.6 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000608/0.3532, allocations: 39.97 kB / 484.6 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.3533, allocations: 64.27 kB / 484.7 MB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.432e-05/0.3534, allocations: 24 kB / 484.7 MB, free: 15.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001256/0.3546, allocations: 0.7763 MB / 485.5 MB, free: 14.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3546, allocations: 0 / 485.5 MB, free: 14.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001301/0.3559, allocations: 328 kB / 485.8 MB, free: 14.48 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.0002504/0.3562, allocations: 131.1 kB / 486 MB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.3583, allocations: 1.085 MB / 487 MB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.3583, allocations: 4.875 kB / 487 MB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001172/0.3595, allocations: 0.6941 MB / 487.7 MB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001681/0.3612, allocations: 336.4 kB / 488.1 MB, free: 12.17 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005937/0.3671, allocations: 2.985 MB / 491.1 MB, free: 9.098 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008394/0.368, allocations: 0.6414 MB / 491.7 MB, free: 8.422 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000364/0.3683, allocations: 95.41 kB / 491.8 MB, free: 8.332 MB / 398.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3683, allocations: 0 / 491.8 MB, free: 8.332 MB / 398.1 MB Notification: Performance of Templates: time 0.05235/0.4207, allocations: 41.19 MB / 0.5205 GB, free: 15.18 MB / 446.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/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_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.369807898066938]