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.001279/0.001279, allocations: 108.6 kB / 21.19 MB, free: 0.7578 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.001334/0.001334, allocations: 193.1 kB / 24.47 MB, free: 4.152 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.415/1.415, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.002491/0.002491, allocations: 47.91 kB / 371.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2746, allocations: 52.18 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01601/0.2906, allocations: 12.26 MB / 436.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007393/0.298, allocations: 3.284 MB / 439.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001868/0.2999, allocations: 43.81 kB / 439.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002394/0.3023, allocations: 0.6961 MB / 440.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002839/0.3051, allocations: 0.7794 MB / 440.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001258/0.3064, allocations: 407.5 kB / 441.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003858/0.3102, allocations: 2.413 MB / 443.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.3115, allocations: 0.6501 MB / 444.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001507/0.3131, allocations: 0.9378 MB / 445.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00165/0.3147, allocations: 0.984 MB / 446.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005009/0.3152, allocations: 228 kB / 446.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007534/0.316, allocations: 268 kB / 446.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004995/0.3165, allocations: 462.3 kB / 447.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001535/0.318, allocations: 1.073 MB / 448.3 MB, free: 6.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003884/0.3219, allocations: 2.848 MB / 451.2 MB, free: 3.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3219, allocations: 0 / 451.2 MB, free: 3.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3219, allocations: 0 / 451.2 MB, free: 3.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.444e-05/0.322, allocations: 0 / 451.2 MB, free: 3.25 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.00477/0.3267, allocations: 2.126 MB / 453.3 MB, free: 1.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3268, allocations: 12.03 kB / 453.3 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009456/0.3277, allocations: 295.5 kB / 453.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002037/0.3298, allocations: 1.044 MB / 454.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.3299, allocations: 119.5 kB / 454.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000242/0.3301, allocations: 163.9 kB / 454.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002688/0.3328, allocations: 1.504 MB / 456.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.536e-05/0.3329, allocations: 11.89 kB / 456.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001327/0.333, allocations: 60 kB / 456.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.334e-05/0.333, allocations: 40 kB / 456.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002199/0.3352, allocations: 1.053 MB / 457.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009409/0.3447, allocations: 6.112 MB / 463.7 MB, free: 6.273 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.3463, allocations: 0.5736 MB / 464.3 MB, free: 5.691 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009763/0.3473, allocations: 422.5 kB / 464.7 MB, free: 5.277 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.772e-05/0.3473, allocations: 8.656 kB / 464.7 MB, free: 5.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.3474, allocations: 43.22 kB / 464.7 MB, free: 5.215 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.975e-06/0.3474, allocations: 0 / 464.7 MB, free: 5.215 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005286/0.3527, allocations: 2.166 MB / 466.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.72e-05/0.3527, allocations: 111.4 kB / 467 MB, free: 2.887 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002031/0.3548, allocations: 1.314 MB / 468.3 MB, free: 1.559 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.266e-05/0.3548, allocations: 41.64 kB / 468.4 MB, free: 1.512 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007599/0.3556, allocations: 0.8671 MB / 469.2 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000237/0.3558, allocations: 273.7 kB / 469.5 MB, free: 376 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000318/0.3561, allocations: 202.8 kB / 469.7 MB, free: 168 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.3563, allocations: 353.9 kB / 470.1 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006186/0.357, allocations: 282.5 kB / 470.3 MB, free: 15.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.358, allocations: 0.7424 MB / 471.1 MB, free: 14.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001804/0.3598, allocations: 1.088 MB / 472.2 MB, free: 13.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.3598, allocations: 4 kB / 472.2 MB, free: 13.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002683/0.3625, allocations: 1.261 MB / 473.4 MB, free: 12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.3625, allocations: 16.09 kB / 473.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.77e-05/0.3626, allocations: 16 kB / 473.5 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005505/0.3631, allocations: 134.5 kB / 473.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008866/0.364, allocations: 259.5 kB / 473.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004555/0.3686, allocations: 4.325 MB / 478.2 MB, free: 6.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.3698, allocations: 60 kB / 478.2 MB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.987e-05/0.3699, allocations: 59.98 kB / 478.3 MB, free: 6.789 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.0007386/0.3706, allocations: 357.3 kB / 478.6 MB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000255/0.3709, allocations: 143.1 kB / 478.8 MB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001953/0.3728, allocations: 0.8297 MB / 479.6 MB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.3728, allocations: 11.94 kB / 479.6 MB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3728, allocations: 4 kB / 479.6 MB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.3729, allocations: 4.125 kB / 479.6 MB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004336/0.3772, allocations: 2.293 MB / 481.9 MB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.3772, allocations: 4 kB / 481.9 MB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006311/0.3778, allocations: 127.8 kB / 482 MB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000502/0.3783, allocations: 142.5 kB / 482.2 MB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.318e-05/0.3784, allocations: 23.94 kB / 482.2 MB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005029/0.3834, allocations: 4.48 MB / 486.7 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.3834, allocations: 4 kB / 486.7 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002733/0.3862, allocations: 1.293 MB / 488 MB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006512/0.3868, allocations: 222.9 kB / 488.2 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002321/0.387, allocations: 16 kB / 488.2 MB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006234/0.3877, allocations: 43.91 kB / 488.3 MB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.3878, allocations: 64.33 kB / 488.3 MB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.696e-05/0.3879, allocations: 27.94 kB / 488.4 MB, free: 12.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001476/0.3893, allocations: 0.8742 MB / 489.2 MB, free: 11.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3893, allocations: 0 / 489.2 MB, free: 11.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001328/0.3907, allocations: 336 kB / 489.6 MB, free: 10.94 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.0002614/0.3909, allocations: 131.1 kB / 489.7 MB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002315/0.3932, allocations: 1.085 MB / 490.8 MB, free: 9.688 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3933, allocations: 0 / 490.8 MB, free: 9.688 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.3944, allocations: 0.6949 MB / 491.5 MB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001873/0.3963, allocations: 364.7 kB / 491.8 MB, free: 8.602 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006175/0.4025, allocations: 3.017 MB / 494.8 MB, free: 5.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.4035, allocations: 1.21 MB / 496 MB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000427/0.4039, allocations: 99.42 kB / 496.1 MB, free: 4.168 MB / 398.1 MB Notification: Performance of SimCode: time 2.084e-06/0.4039, allocations: 0 / 496.1 MB, free: 4.168 MB / 398.1 MB Notification: Performance of Templates: time 0.0538/0.4577, allocations: 41.19 MB / 0.5247 GB, free: 11.03 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.746146184857935]