Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.002159/0.002159, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00267/0.00267, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.612/1.612, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 51.92 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.255, allocations: 53.36 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008488/0.2635, allocations: 6.362 MB / 437.9 MB, free: 320 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003733/0.2672, allocations: 2.216 MB / 440.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003587/0.2676, allocations: 27.88 kB / 440.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.2688, allocations: 468.8 kB / 440.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00076/0.2695, allocations: 417 kB / 441.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003649/0.2699, allocations: 199.8 kB / 441.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.2711, allocations: 1.209 MB / 442.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005281/0.2717, allocations: 320.5 kB / 442.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006361/0.2723, allocations: 478.1 kB / 443.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005442/0.2729, allocations: 429.8 kB / 443.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.273, allocations: 112 kB / 443.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002892/0.2733, allocations: 156 kB / 443.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.2735, allocations: 235.1 kB / 444.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004259/0.2739, allocations: 446 kB / 444.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.2754, allocations: 1.444 MB / 446 MB, free: 8.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2754, allocations: 4 kB / 446 MB, free: 8.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2754, allocations: 0 / 446 MB, free: 8.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.2754, allocations: 4 kB / 446 MB, free: 8.176 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002013/0.2775, allocations: 1.198 MB / 447.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2775, allocations: 15.97 kB / 447.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005222/0.278, allocations: 148.2 kB / 447.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.2791, allocations: 0.5843 MB / 448 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.2792, allocations: 58.38 kB / 448 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.2793, allocations: 84.33 kB / 448.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.2807, allocations: 0.8334 MB / 449 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.2807, allocations: 3.938 kB / 449 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-05/0.2808, allocations: 32 kB / 449 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.2808, allocations: 20 kB / 449 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.2819, allocations: 0.5231 MB / 449.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004077/0.2859, allocations: 2.908 MB / 452.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004847/0.2864, allocations: 214.5 kB / 452.6 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.2867, allocations: 112.7 kB / 452.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.2867, allocations: 0 / 452.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.2867, allocations: 42.56 kB / 452.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.413e-06/0.2867, allocations: 0 / 452.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002103/0.2888, allocations: 0.9004 MB / 453.7 MB, free: 160 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.2889, allocations: 81.34 kB / 453.8 MB, free: 60 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009161/0.2898, allocations: 0.6759 MB / 454.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.2898, allocations: 33.7 kB / 454.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003915/0.2902, allocations: 0.5149 MB / 455 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.824e-05/0.2903, allocations: 111.1 kB / 455.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.2905, allocations: 110.2 kB / 455.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.2907, allocations: 370.8 kB / 455.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/0.2909, allocations: 129.2 kB / 455.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005312/0.2915, allocations: 451.9 kB / 456.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008364/0.2923, allocations: 0.5714 MB / 456.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2923, allocations: 4 kB / 456.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001087/0.2934, allocations: 0.6149 MB / 457.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.2934, allocations: 8 kB / 457.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.2934, allocations: 16.73 kB / 457.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001508/0.2936, allocations: 32.86 kB / 457.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004381/0.294, allocations: 143.7 kB / 457.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/0.2951, allocations: 1.252 MB / 458.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004626/0.2956, allocations: 40.09 kB / 458.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.129e-05/0.2956, allocations: 35.94 kB / 458.9 MB, free: 10.55 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003297/0.2959, allocations: 237.5 kB / 459.1 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.296, allocations: 67.58 kB / 459.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006537/0.2967, allocations: 312.8 kB / 459.5 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2967, allocations: 7.938 kB / 459.5 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2967, allocations: 3.938 kB / 459.5 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.2967, allocations: 4 kB / 459.5 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001517/0.2982, allocations: 0.8989 MB / 460.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.2982, allocations: 0 / 460.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002637/0.2985, allocations: 59.89 kB / 460.4 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.293e-05/0.2986, allocations: 25.08 kB / 460.5 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.2986, allocations: 8 kB / 460.5 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009805/0.2996, allocations: 1.252 MB / 461.7 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.2996, allocations: 7.969 kB / 461.7 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009235/0.3005, allocations: 0.5486 MB / 462.3 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.3007, allocations: 91.47 kB / 462.4 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.03e-05/0.3008, allocations: 8 kB / 462.4 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003082/0.3011, allocations: 19.98 kB / 462.4 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.766e-05/0.3011, allocations: 23.95 kB / 462.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.3011, allocations: 11.94 kB / 462.4 MB, free: 6.746 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006264/0.3018, allocations: 467.1 kB / 462.9 MB, free: 6.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3018, allocations: 0 / 462.9 MB, free: 6.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006289/0.3024, allocations: 159.9 kB / 463 MB, free: 6.137 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0001919/0.3026, allocations: 115.2 kB / 463.2 MB, free: 6.016 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009106/0.3035, allocations: 452.9 kB / 463.6 MB, free: 5.562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.3035, allocations: 4.375 kB / 463.6 MB, free: 5.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003909/0.3039, allocations: 242.4 kB / 463.8 MB, free: 5.309 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000844/0.3047, allocations: 167.2 kB / 464 MB, free: 5.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.307, allocations: 1.439 MB / 465.4 MB, free: 3.664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003892/0.3074, allocations: 348.5 kB / 465.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002826/0.3077, allocations: 85.47 kB / 465.9 MB, free: 3.211 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.783e-05/0.3078, allocations: 43.44 kB / 465.9 MB, free: 3.168 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3078, allocations: 0 / 465.9 MB, free: 3.168 MB / 366.1 MB Notification: Performance of Templates: time 0.01731/0.3251, allocations: 9.14 MB / 475 MB, free: 10.21 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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: 5.06129564344883]