Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001321/0.001321, allocations: 81.3 kB / 20.68 MB, free: 1.035 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.001382/0.001382, allocations: 151.2 kB / 23.94 MB, free: 4.184 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.421/1.421, allocations: 173.3 MB / 200.4 MB, free: 12.91 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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 318.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.079e-05/2.192e-05, allocations: 2.281 kB / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008086/0.008108, allocations: 7.252 MB / 326.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005293/0.0134, allocations: 2.522 MB / 328.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.01457, allocations: 27.53 kB / 328.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001917/0.01649, allocations: 0.5309 MB / 329.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002264/0.01875, allocations: 0.5247 MB / 329.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000902/0.01965, allocations: 261.2 kB / 330 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00239/0.02204, allocations: 1.573 MB / 331.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00083/0.02287, allocations: 374.7 kB / 332 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001817/0.02469, allocations: 0.8771 MB / 332.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001057/0.02575, allocations: 446.8 kB / 333.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003607/0.02611, allocations: 144 kB / 333.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007087/0.02682, allocations: 184.2 kB / 333.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003893/0.02721, allocations: 289.8 kB / 333.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001088/0.0283, allocations: 471.6 kB / 334.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00287/0.03117, allocations: 1.76 MB / 336.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.03117, allocations: 0 / 336.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.03117, allocations: 0 / 336.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.664e-05/0.03126, allocations: 5.219 kB / 336.1 MB, free: 8.629 MB / 302.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.004569/0.03583, allocations: 1.421 MB / 337.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.03588, allocations: 9.562 kB / 337.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008276/0.03671, allocations: 190.9 kB / 337.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001807/0.03851, allocations: 0.6984 MB / 338.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.285e-05/0.0386, allocations: 73.25 kB / 338.5 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.03876, allocations: 95.72 kB / 338.6 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002272/0.04103, allocations: 1.051 MB / 339.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.961e-05/0.04107, allocations: 5.328 kB / 339.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/0.04117, allocations: 41.88 kB / 339.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.297e-05/0.04121, allocations: 23.16 kB / 339.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.04265, allocations: 0.6525 MB / 340.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005896/0.04855, allocations: 3.387 MB / 343.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007129/0.04926, allocations: 344.1 kB / 344.1 MB, free: 2.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006427/0.0499, allocations: 261.3 kB / 344.3 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.51e-05/0.04994, allocations: 4.688 kB / 344.4 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.04998, allocations: 42.55 kB / 344.4 MB, free: 1.852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.093e-06/0.04998, allocations: 4 kB / 344.4 MB, free: 1.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003285/0.05326, allocations: 1.324 MB / 345.7 MB, free: 492 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.05333, allocations: 85.11 kB / 345.8 MB, free: 388 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.05443, allocations: 0.7818 MB / 346.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.05447, allocations: 33.7 kB / 346.6 MB, free: 15.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004759/0.05495, allocations: 0.6007 MB / 347.2 MB, free: 14.94 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/0.05509, allocations: 162.6 kB / 347.4 MB, free: 14.78 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002223/0.05531, allocations: 134.6 kB / 347.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.05552, allocations: 382.8 kB / 347.9 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003819/0.0559, allocations: 173.9 kB / 348.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006489/0.05655, allocations: 497.3 kB / 348.5 MB, free: 13.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.05761, allocations: 0.6799 MB / 349.2 MB, free: 12.65 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.05762, allocations: 4 kB / 349.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001501/0.05912, allocations: 0.7753 MB / 350 MB, free: 11.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.05914, allocations: 11.12 kB / 350 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.05916, allocations: 12 kB / 350 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002867/0.05944, allocations: 89.86 kB / 350.1 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005441/0.05999, allocations: 155.8 kB / 350.3 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.06283, allocations: 2.889 MB / 353.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006204/0.06345, allocations: 39.94 kB / 353.2 MB, free: 8.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.467e-05/0.06351, allocations: 35.98 kB / 353.2 MB, free: 8.422 MB / 318.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.0004114/0.06392, allocations: 269.5 kB / 353.5 MB, free: 8.148 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.06406, allocations: 83.48 kB / 353.6 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.06511, allocations: 0.4906 MB / 354.1 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.06512, allocations: 4 kB / 354.1 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.06513, allocations: 4 kB / 354.1 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.06513, allocations: 7.984 kB / 354.1 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.06739, allocations: 1.221 MB / 355.3 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.0674, allocations: 4 kB / 355.3 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003492/0.06775, allocations: 71.91 kB / 355.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002257/0.06797, allocations: 73.61 kB / 355.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.068, allocations: 12.19 kB / 355.5 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002646/0.07065, allocations: 2.854 MB / 358.3 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.07065, allocations: 8 kB / 358.3 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.07209, allocations: 0.7914 MB / 359.1 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002989/0.07239, allocations: 119.5 kB / 359.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.07252, allocations: 23.97 kB / 359.3 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004573/0.07297, allocations: 23.98 kB / 359.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.194e-05/0.07307, allocations: 43.62 kB / 359.3 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.153e-05/0.0731, allocations: 12 kB / 359.3 MB, free: 1.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007543/0.07385, allocations: 0.5225 MB / 359.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.07385, allocations: 0 / 359.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008823/0.07473, allocations: 211.9 kB / 360.1 MB, free: 1.242 MB / 318.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.0002424/0.07498, allocations: 127.1 kB / 360.2 MB, free: 1.109 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.07626, allocations: 0.6821 MB / 360.9 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.07627, allocations: 4 kB / 360.9 MB, free: 408 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007467/0.07701, allocations: 437.9 kB / 361.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.07804, allocations: 213.7 kB / 361.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.08102, allocations: 1.653 MB / 363.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004832/0.0815, allocations: 422.4 kB / 363.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003536/0.08186, allocations: 106.7 kB / 363.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.08199, allocations: 52.5 kB / 363.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of SimCode: time 4.7e-07/0.08199, allocations: 0 / 363.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of Templates: time 0.02075/0.1027, allocations: 10.22 MB / 373.9 MB, free: 3.426 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.628864753991365]