Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001871/0.001871, allocations: 116.8 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002174/0.002174, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 230.2 MB / 255.2 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 63.89 kB / 374.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09965, allocations: 53.32 MB / 427.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.2094/0.309, allocations: 8.126 MB / 436 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004008/0.313, allocations: 2.682 MB / 438.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.3141, allocations: 24.47 kB / 438.7 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001524/0.3156, allocations: 0.5655 MB / 439.2 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001228/0.3169, allocations: 0.4961 MB / 439.7 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000511/0.3174, allocations: 250.6 kB / 440 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001652/0.319, allocations: 1.47 MB / 441.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005992/0.3196, allocations: 407.4 kB / 441.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009366/0.3206, allocations: 0.5608 MB / 442.4 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007552/0.3213, allocations: 0.5947 MB / 443 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001855/0.3215, allocations: 138.1 kB / 443.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003994/0.3219, allocations: 176 kB / 443.3 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001901/0.3221, allocations: 291.2 kB / 443.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005559/0.3226, allocations: 0.6545 MB / 444.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002085/0.3247, allocations: 1.73 MB / 446 MB, free: 2.691 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3247, allocations: 1.062 kB / 446 MB, free: 2.691 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3247, allocations: 0.75 kB / 446 MB, free: 2.691 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.177e-05/0.3248, allocations: 0 / 446 MB, free: 2.691 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002491/0.3273, allocations: 1.481 MB / 447.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.3273, allocations: 9.781 kB / 447.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006951/0.328, allocations: 195.3 kB / 447.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.3292, allocations: 0.7614 MB / 448.4 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.222e-05/0.3292, allocations: 73.03 kB / 448.5 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.3293, allocations: 100.4 kB / 448.6 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.3309, allocations: 0.9343 MB / 449.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.539e-05/0.3309, allocations: 3 kB / 449.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.507e-05/0.331, allocations: 41.19 kB / 449.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.771e-05/0.331, allocations: 25.72 kB / 449.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.3322, allocations: 0.6306 MB / 450.2 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005882/0.3381, allocations: 3.9 MB / 454.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007359/0.3388, allocations: 416.6 kB / 454.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006152/0.3394, allocations: 248 kB / 454.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.203e-05/0.3395, allocations: 7.172 kB / 454.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.3395, allocations: 47.94 kB / 454.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.655e-06/0.3395, allocations: 0 / 454.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.003142/0.3426, allocations: 1.401 MB / 456.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.3427, allocations: 86.55 kB / 456.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.3439, allocations: 0.8278 MB / 457.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.302e-05/0.344, allocations: 32.33 kB / 457.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004444/0.3444, allocations: 0.5681 MB / 457.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.3445, allocations: 166.1 kB / 457.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.3447, allocations: 137.7 kB / 458 MB, free: 11.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.3449, allocations: 333.1 kB / 458.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003422/0.3452, allocations: 168.2 kB / 458.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006043/0.3458, allocations: 466.9 kB / 459 MB, free: 10.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000995/0.3468, allocations: 0.658 MB / 459.6 MB, free: 9.836 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.3468, allocations: 2.938 kB / 459.6 MB, free: 9.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001474/0.3483, allocations: 0.7659 MB / 460.4 MB, free: 9.488 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3483, allocations: 8.875 kB / 460.4 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.3483, allocations: 10.03 kB / 460.4 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002955/0.3486, allocations: 90.64 kB / 460.5 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005033/0.3491, allocations: 154.2 kB / 460.7 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002918/0.3521, allocations: 3.141 MB / 463.8 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007837/0.3528, allocations: 40.31 kB / 463.9 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.269e-05/0.3529, allocations: 32.41 kB / 463.9 MB, free: 6.254 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000503/0.3534, allocations: 264.9 kB / 464.1 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.3536, allocations: 88.69 kB / 464.2 MB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009978/0.3546, allocations: 491 kB / 464.7 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3546, allocations: 4.219 kB / 464.7 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3546, allocations: 1.375 kB / 464.7 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3546, allocations: 6.688 kB / 464.7 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002397/0.357, allocations: 1.439 MB / 466.2 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.357, allocations: 2.188 kB / 466.2 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/0.3573, allocations: 69.16 kB / 466.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000214/0.3575, allocations: 69.11 kB / 466.3 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.3575, allocations: 8.625 kB / 466.3 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002757/0.3603, allocations: 3.127 MB / 469.4 MB, free: 1.395 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3603, allocations: 2.25 kB / 469.4 MB, free: 1.395 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.3617, allocations: 0.7814 MB / 470.2 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003824/0.3621, allocations: 197.1 kB / 470.4 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.3622, allocations: 17.03 kB / 470.4 MB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004471/0.3627, allocations: 25.88 kB / 470.4 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.3628, allocations: 35.45 kB / 470.5 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.3628, allocations: 18.16 kB / 470.5 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008608/0.3637, allocations: 0.5648 MB / 471.1 MB, free: 312 kB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3637, allocations: 0 / 471.1 MB, free: 312 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.000946/0.3646, allocations: 204.4 kB / 471.3 MB, free: 292 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0002349/0.3649, allocations: 125.7 kB / 471.4 MB, free: 184 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.3662, allocations: 0.6692 MB / 472.1 MB, free: 15.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.3662, allocations: 0 / 472.1 MB, free: 15.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007305/0.367, allocations: 434.6 kB / 472.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.3682, allocations: 240.8 kB / 472.7 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003202/0.3714, allocations: 1.772 MB / 474.5 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006989/0.3721, allocations: 1.003 MB / 475.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/0.3723, allocations: 62.8 kB / 475.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3723, allocations: 0 / 475.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of Templates: time 0.02924/0.4015, allocations: 21.05 MB / 496.6 MB, free: 10.66 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.262433383148164]