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.001329/0.001329, allocations: 108 kB / 20.43 MB, free: 1.473 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.001669/0.001669, allocations: 187.5 kB / 23.72 MB, free: 4.711 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.417/1.417, allocations: 225.6 MB / 252.5 MB, free: 13.05 MB / 206.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 0.001553/0.001553, allocations: 51.92 kB / 370.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2583, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01031/0.2686, allocations: 8.299 MB / 431.4 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005211/0.2738, allocations: 2.7 MB / 434.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008181/0.2746, allocations: 27.88 kB / 434.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.2762, allocations: 0.5753 MB / 434.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001093/0.2773, allocations: 0.508 MB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004967/0.2778, allocations: 263.7 kB / 435.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001618/0.2794, allocations: 1.501 MB / 437 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007426/0.2801, allocations: 399.3 kB / 437.4 MB, free: 372 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000707/0.2808, allocations: 0.5914 MB / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007216/0.2815, allocations: 0.6106 MB / 438.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001845/0.2817, allocations: 140 kB / 438.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003516/0.2821, allocations: 176 kB / 438.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002996/0.2824, allocations: 294.9 kB / 439.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006808/0.2831, allocations: 0.6687 MB / 439.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001992/0.2851, allocations: 1.76 MB / 441.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2851, allocations: 0 / 441.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2851, allocations: 0 / 441.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.594e-05/0.2851, allocations: 4 kB / 441.6 MB, free: 12.12 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.00257/0.2876, allocations: 1.438 MB / 443.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2877, allocations: 8.031 kB / 443.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006614/0.2883, allocations: 196 kB / 443.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.2896, allocations: 0.6969 MB / 444 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.283e-05/0.2897, allocations: 74 kB / 444 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.2898, allocations: 100 kB / 444.1 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001668/0.2915, allocations: 0.9464 MB / 445.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.098e-05/0.2915, allocations: 3.953 kB / 445.1 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.428e-05/0.2916, allocations: 40 kB / 445.1 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.419e-05/0.2916, allocations: 28 kB / 445.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00134/0.293, allocations: 0.6558 MB / 445.8 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005194/0.2981, allocations: 3.805 MB / 449.6 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007271/0.2989, allocations: 351.6 kB / 449.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006392/0.2995, allocations: 264.6 kB / 450.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.22e-05/0.2995, allocations: 8 kB / 450.2 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.2996, allocations: 38.55 kB / 450.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.703e-06/0.2996, allocations: 0 / 450.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002963/0.3025, allocations: 1.334 MB / 451.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.386e-05/0.3026, allocations: 89.05 kB / 451.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.3038, allocations: 0.8372 MB / 452.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.3038, allocations: 33.7 kB / 452.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004279/0.3043, allocations: 0.5814 MB / 453.1 MB, free: 216 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.3044, allocations: 170.6 kB / 453.3 MB, free: 44 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002063/0.3046, allocations: 142.7 kB / 453.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3047, allocations: 330 kB / 453.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003793/0.3051, allocations: 173.9 kB / 453.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005884/0.3057, allocations: 467.6 kB / 454.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.3067, allocations: 0.6797 MB / 455.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3067, allocations: 0 / 455.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001392/0.3081, allocations: 0.7909 MB / 455.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.3081, allocations: 20 kB / 455.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.3082, allocations: 11.94 kB / 455.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002751/0.3084, allocations: 93.61 kB / 456 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005197/0.309, allocations: 151.7 kB / 456.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002595/0.3116, allocations: 2.94 MB / 459.1 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005312/0.3121, allocations: 31.94 kB / 459.1 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.977e-05/0.3121, allocations: 36 kB / 459.1 MB, free: 9.676 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.0003763/0.3125, allocations: 265.7 kB / 459.4 MB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.3126, allocations: 95.44 kB / 459.5 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.3137, allocations: 0.4991 MB / 460 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.3137, allocations: 4 kB / 460 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.3137, allocations: 4 kB / 460 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3137, allocations: 0 / 460 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002267/0.316, allocations: 1.446 MB / 461.4 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.316, allocations: 0 / 461.4 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003318/0.3163, allocations: 67.95 kB / 461.5 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000209/0.3165, allocations: 81.88 kB / 461.6 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.3165, allocations: 8 kB / 461.6 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002762/0.3193, allocations: 2.919 MB / 464.5 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.3193, allocations: 7.969 kB / 464.5 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.3209, allocations: 0.8035 MB / 465.3 MB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003674/0.3213, allocations: 127.4 kB / 465.4 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.3214, allocations: 11.94 kB / 465.4 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004752/0.3218, allocations: 35.97 kB / 465.5 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.3219, allocations: 35.88 kB / 465.5 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.322, allocations: 16 kB / 465.5 MB, free: 2.875 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008684/0.3228, allocations: 0.5693 MB / 466.1 MB, free: 2.312 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3228, allocations: 7.938 kB / 466.1 MB, free: 2.305 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008439/0.3237, allocations: 211.9 kB / 466.3 MB, free: 2.098 MB / 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 (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.0002187/0.3239, allocations: 134.8 kB / 466.5 MB, free: 1.961 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.3252, allocations: 0.6865 MB / 467.1 MB, free: 1.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3252, allocations: 4.062 kB / 467.1 MB, free: 1.246 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007424/0.326, allocations: 440.8 kB / 467.6 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.327, allocations: 237.5 kB / 467.8 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002996/0.33, allocations: 1.754 MB / 469.6 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006879/0.3307, allocations: 1.013 MB / 470.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004014/0.3311, allocations: 103.3 kB / 470.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.3312, allocations: 59.44 kB / 470.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3312, allocations: 4 kB / 470.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of Templates: time 0.02258/0.3538, allocations: 11.34 MB / 482.1 MB, free: 2.34 MB / 382.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.978219297714531]