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.00195/0.00195, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.002911/0.002911, allocations: 209.4 kB / 23.74 MB, free: 4.66 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 8.035 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.001649/0.001649, allocations: 51.92 kB / 378.3 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.241, allocations: 53.35 MB / 431.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01083/0.2518, allocations: 8.313 MB / 439.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005634/0.2574, allocations: 2.766 MB / 442.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008665/0.2583, allocations: 31.81 kB / 442.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001542/0.2598, allocations: 0.5754 MB / 443.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001165/0.261, allocations: 0.5041 MB / 443.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005637/0.2616, allocations: 279.6 kB / 444.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001866/0.2634, allocations: 1.505 MB / 445.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007166/0.2641, allocations: 407.3 kB / 446 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008082/0.2649, allocations: 0.5875 MB / 446.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008027/0.2657, allocations: 0.6105 MB / 447.2 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001703/0.2659, allocations: 140 kB / 447.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003377/0.2663, allocations: 184 kB / 447.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002495/0.2665, allocations: 294.9 kB / 447.8 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006535/0.2672, allocations: 0.6765 MB / 448.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002024/0.2692, allocations: 1.76 MB / 450.2 MB, free: 4.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2692, allocations: 0 / 450.2 MB, free: 4.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2692, allocations: 0 / 450.2 MB, free: 4.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.2692, allocations: 3.938 kB / 450.2 MB, free: 4.238 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.002625/0.2718, allocations: 1.442 MB / 451.7 MB, free: 2.762 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.2719, allocations: 8.031 kB / 451.7 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007565/0.2726, allocations: 212 kB / 451.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.274, allocations: 0.697 MB / 452.6 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.635e-05/0.2741, allocations: 74 kB / 452.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.2742, allocations: 99.95 kB / 452.8 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.276, allocations: 0.9425 MB / 453.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-05/0.276, allocations: 7.984 kB / 453.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.967e-05/0.2761, allocations: 40 kB / 453.8 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.2761, allocations: 24 kB / 453.8 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0014/0.2775, allocations: 0.6482 MB / 454.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005763/0.2833, allocations: 3.813 MB / 458.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007368/0.284, allocations: 346.6 kB / 458.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006273/0.2846, allocations: 260.7 kB / 458.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.951e-05/0.2847, allocations: 4 kB / 458.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/0.2847, allocations: 46.5 kB / 458.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.893e-06/0.2847, allocations: 0 / 458.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003171/0.2879, allocations: 1.338 MB / 460.2 MB, free: 9.895 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.71e-05/0.288, allocations: 85.11 kB / 460.3 MB, free: 9.793 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.2892, allocations: 0.8411 MB / 461.1 MB, free: 8.941 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.93e-05/0.2892, allocations: 33.7 kB / 461.2 MB, free: 8.902 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004901/0.2897, allocations: 0.5775 MB / 461.8 MB, free: 8.316 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.2899, allocations: 166.6 kB / 461.9 MB, free: 8.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.2901, allocations: 134.4 kB / 462 MB, free: 8.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.2903, allocations: 333.9 kB / 462.4 MB, free: 7.688 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.2907, allocations: 181.9 kB / 462.6 MB, free: 7.508 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006503/0.2913, allocations: 475.6 kB / 463 MB, free: 6.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.2924, allocations: 0.6759 MB / 463.7 MB, free: 6.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.2924, allocations: 4 kB / 463.7 MB, free: 6.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001413/0.2938, allocations: 0.7872 MB / 464.5 MB, free: 5.297 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.2938, allocations: 8 kB / 464.5 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.2938, allocations: 8 kB / 464.5 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002865/0.2941, allocations: 85.88 kB / 464.6 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005253/0.2946, allocations: 163.7 kB / 464.7 MB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002764/0.2974, allocations: 2.939 MB / 467.7 MB, free: 1.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005475/0.298, allocations: 44 kB / 467.7 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.001e-05/0.298, allocations: 36 kB / 467.8 MB, free: 1.785 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.0004076/0.2984, allocations: 265.5 kB / 468 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.2986, allocations: 87.44 kB / 468.1 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.2996, allocations: 0.5032 MB / 468.6 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.2996, allocations: 4 kB / 468.6 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.2996, allocations: 0 / 468.6 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.2996, allocations: 7.984 kB / 468.6 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/0.3019, allocations: 1.45 MB / 470.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.3019, allocations: 4 kB / 470.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003249/0.3022, allocations: 71.89 kB / 470.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002038/0.3024, allocations: 69.86 kB / 470.2 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.3025, allocations: 16.12 kB / 470.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00257/0.305, allocations: 2.916 MB / 473.1 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.305, allocations: 0 / 473.1 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.3064, allocations: 0.806 MB / 474 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002933/0.3067, allocations: 127.4 kB / 474.1 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.3068, allocations: 11.94 kB / 474.1 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004439/0.3073, allocations: 31.97 kB / 474.1 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.3074, allocations: 43.62 kB / 474.2 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.3074, allocations: 16 kB / 474.2 MB, free: 10.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008506/0.3082, allocations: 0.5771 MB / 474.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3082, allocations: 0 / 474.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008368/0.3091, allocations: 208 kB / 475 MB, free: 10.21 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.0002035/0.3093, allocations: 123.1 kB / 475.1 MB, free: 10.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.3106, allocations: 0.6889 MB / 475.8 MB, free: 9.363 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3106, allocations: 2 kB / 475.8 MB, free: 9.363 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007349/0.3113, allocations: 445.5 kB / 476.2 MB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.3124, allocations: 236.8 kB / 476.4 MB, free: 8.676 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003742/0.3162, allocations: 1.768 MB / 478.2 MB, free: 6.855 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007742/0.3169, allocations: 1.013 MB / 479.2 MB, free: 5.812 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003925/0.3173, allocations: 107.3 kB / 479.3 MB, free: 5.703 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.3175, allocations: 59.44 kB / 479.4 MB, free: 5.645 MB / 382.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3175, allocations: 0 / 479.4 MB, free: 5.645 MB / 382.1 MB Notification: Performance of Templates: time 0.02444/0.3419, allocations: 11.37 MB / 490.7 MB, free: 10.41 MB / 398.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.094991453923285]