Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 51.92 kB / 373.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1046, allocations: 53.34 MB / 426.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.2115/0.3161, allocations: 8.271 MB / 435.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00451/0.3206, allocations: 2.747 MB / 437.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008674/0.3215, allocations: 29.31 kB / 437.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.3231, allocations: 0.5859 MB / 438.4 MB, free: 5.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001448/0.3245, allocations: 0.5007 MB / 438.9 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007225/0.3253, allocations: 268 kB / 439.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002699/0.3279, allocations: 1.51 MB / 440.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009633/0.3289, allocations: 407.5 kB / 441.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001766/0.3307, allocations: 0.584 MB / 441.7 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007611/0.3314, allocations: 0.6131 MB / 442.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002067/0.3316, allocations: 139.9 kB / 442.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004197/0.3321, allocations: 188.2 kB / 442.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002304/0.3323, allocations: 284 kB / 442.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005665/0.3329, allocations: 0.6748 MB / 443.6 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002885/0.3357, allocations: 1.763 MB / 445.3 MB, free: 2.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3358, allocations: 1.125 kB / 445.4 MB, free: 2.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3358, allocations: 4 kB / 445.4 MB, free: 2.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.264e-05/0.3358, allocations: 1.125 kB / 445.4 MB, free: 2.16 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002818/0.3386, allocations: 1.52 MB / 446.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3387, allocations: 9.125 kB / 446.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008556/0.3395, allocations: 210.2 kB / 447.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.3408, allocations: 0.7603 MB / 447.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.461e-05/0.3409, allocations: 78 kB / 447.9 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/0.341, allocations: 103.9 kB / 448 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/0.3427, allocations: 0.9434 MB / 449 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.858e-05/0.3428, allocations: 3.734 kB / 449 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/0.3429, allocations: 45.36 kB / 449 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.82e-05/0.3429, allocations: 28.53 kB / 449 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.3444, allocations: 0.646 MB / 449.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0066/0.351, allocations: 3.931 MB / 453.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008395/0.3519, allocations: 418.8 kB / 454 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006779/0.3525, allocations: 262.9 kB / 454.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.3526, allocations: 5.422 kB / 454.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/0.3526, allocations: 37.59 kB / 454.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.114e-06/0.3526, allocations: 0 / 454.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003609/0.3562, allocations: 1.568 MB / 455.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.206e-05/0.3563, allocations: 82.64 kB / 456 MB, free: 11.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001317/0.3576, allocations: 0.8457 MB / 456.8 MB, free: 11.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.154e-05/0.3577, allocations: 32.45 kB / 456.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005407/0.3582, allocations: 0.5797 MB / 457.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.3584, allocations: 166.4 kB / 457.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002226/0.3586, allocations: 135.3 kB / 457.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.3588, allocations: 333.4 kB / 458.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003899/0.3592, allocations: 170.3 kB / 458.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006462/0.3598, allocations: 479.3 kB / 458.7 MB, free: 9.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.3609, allocations: 0.6754 MB / 459.4 MB, free: 9.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3609, allocations: 3.344 kB / 459.4 MB, free: 9.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001582/0.3625, allocations: 0.7912 MB / 460.2 MB, free: 8.664 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.3625, allocations: 9.375 kB / 460.2 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.31e-05/0.3625, allocations: 14.73 kB / 460.2 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003024/0.3628, allocations: 78.91 kB / 460.3 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005602/0.3634, allocations: 164.3 kB / 460.4 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002931/0.3663, allocations: 3.137 MB / 463.6 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007285/0.367, allocations: 38.44 kB / 463.6 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.262e-05/0.3671, allocations: 35.56 kB / 463.6 MB, free: 5.391 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 (85): * Single equations (assignments): 83 * 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.0004724/0.3676, allocations: 273.5 kB / 463.9 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.3677, allocations: 91.09 kB / 464 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.3688, allocations: 0.4977 MB / 464.5 MB, free: 4.812 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3688, allocations: 7.344 kB / 464.5 MB, free: 4.812 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3688, allocations: 1.781 kB / 464.5 MB, free: 4.812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.3688, allocations: 3.984 kB / 464.5 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002533/0.3714, allocations: 1.473 MB / 466 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3714, allocations: 2.219 kB / 466 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003488/0.3717, allocations: 76.92 kB / 466 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000223/0.3719, allocations: 72.27 kB / 466.1 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/0.372, allocations: 8.781 kB / 466.1 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002691/0.3747, allocations: 3.126 MB / 469.3 MB, free: 496 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3747, allocations: 2.906 kB / 469.3 MB, free: 496 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.3762, allocations: 0.8091 MB / 470.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000367/0.3766, allocations: 210.1 kB / 470.3 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.3767, allocations: 17.78 kB / 470.3 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004692/0.3771, allocations: 28.06 kB / 470.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.839e-05/0.3772, allocations: 39.06 kB / 470.4 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.094e-05/0.3773, allocations: 18.48 kB / 470.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009171/0.3782, allocations: 0.5743 MB / 470.9 MB, free: 15.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3782, allocations: 0 / 470.9 MB, free: 15.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001051/0.3792, allocations: 212.9 kB / 471.2 MB, free: 15.34 MB / 382.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 (39): * Single equations (assignments): 37 * 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.0002478/0.3795, allocations: 126.5 kB / 471.3 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.3809, allocations: 0.6835 MB / 472 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3809, allocations: 5.188 kB / 472 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007308/0.3817, allocations: 439.8 kB / 472.4 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.3828, allocations: 240.7 kB / 472.6 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.3861, allocations: 1.765 MB / 474.4 MB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007291/0.3868, allocations: 1.016 MB / 475.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000461/0.3873, allocations: 111.7 kB / 475.5 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.3874, allocations: 59.92 kB / 475.6 MB, free: 12.29 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3874, allocations: 0 / 475.6 MB, free: 12.29 MB / 382.1 MB Notification: Performance of Templates: time 0.02481/0.4122, allocations: 11.01 MB / 486.6 MB, free: 3.391 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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: 5.067596297711134]