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.00161/0.00161, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001748/0.001748, allocations: 180.9 kB / 23.7 MB, free: 4.414 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.51/1.51, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.001938/0.001938, allocations: 51.86 kB / 370.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2702, allocations: 52.18 MB / 423.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009947/0.2801, allocations: 7.267 MB / 430.3 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00499/0.2851, allocations: 2.498 MB / 432.8 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009875/0.2861, allocations: 27.88 kB / 432.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001602/0.2877, allocations: 0.5312 MB / 433.4 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00134/0.289, allocations: 0.5041 MB / 433.9 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005649/0.2896, allocations: 267.7 kB / 434.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001755/0.2914, allocations: 1.51 MB / 435.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006647/0.292, allocations: 367.3 kB / 436 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008761/0.2929, allocations: 0.5798 MB / 436.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007205/0.2936, allocations: 0.5285 MB / 437.1 MB, free: 320 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001835/0.2938, allocations: 140 kB / 437.3 MB, free: 180 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.2942, allocations: 180 kB / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002545/0.2944, allocations: 279.1 kB / 437.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000576/0.295, allocations: 0.5483 MB / 438.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002052/0.2971, allocations: 1.774 MB / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2971, allocations: 0 / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2971, allocations: 0 / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.948e-05/0.2971, allocations: 0 / 440 MB, free: 13.39 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.002648/0.2997, allocations: 1.441 MB / 441.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.2998, allocations: 8.031 kB / 441.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007524/0.3005, allocations: 196 kB / 441.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.3019, allocations: 0.6891 MB / 442.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.117e-05/0.302, allocations: 77.98 kB / 442.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.3021, allocations: 107.9 kB / 442.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.3039, allocations: 1.039 MB / 443.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.082e-05/0.3039, allocations: 11.95 kB / 443.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.545e-05/0.304, allocations: 39.98 kB / 443.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.304, allocations: 27.98 kB / 443.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.3054, allocations: 0.648 MB / 444.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005302/0.3107, allocations: 3.385 MB / 447.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007477/0.3114, allocations: 347.6 kB / 448 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006417/0.3121, allocations: 264.6 kB / 448.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.3121, allocations: 4 kB / 448.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.3122, allocations: 38.56 kB / 448.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.194e-06/0.3122, allocations: 0 / 448.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003091/0.3152, allocations: 1.334 MB / 449.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/0.3153, allocations: 85.11 kB / 449.8 MB, free: 3.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.3164, allocations: 0.7818 MB / 450.5 MB, free: 2.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.732e-05/0.3165, allocations: 33.7 kB / 450.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000463/0.3169, allocations: 0.5814 MB / 451.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.3171, allocations: 170.6 kB / 451.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.3173, allocations: 134.6 kB / 451.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.3175, allocations: 386.8 kB / 451.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/0.3179, allocations: 173.9 kB / 452 MB, free: 1.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000651/0.3185, allocations: 497.3 kB / 452.5 MB, free: 388 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.3196, allocations: 0.6758 MB / 453.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3196, allocations: 4 kB / 453.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001467/0.321, allocations: 0.7834 MB / 454 MB, free: 14.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.3211, allocations: 12 kB / 454 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.3211, allocations: 12 kB / 454 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002776/0.3214, allocations: 85.67 kB / 454.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005429/0.3219, allocations: 151.7 kB / 454.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002748/0.3247, allocations: 2.898 MB / 457.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005835/0.3252, allocations: 32.09 kB / 457.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-05/0.3253, allocations: 40 kB / 457.2 MB, free: 11.34 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.0004199/0.3257, allocations: 263.4 kB / 457.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.3258, allocations: 83.48 kB / 457.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/0.3269, allocations: 498.5 kB / 458 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.567e-06/0.3269, allocations: 7.938 kB / 458 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.3269, allocations: 4 kB / 458 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.3269, allocations: 8.016 kB / 458 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002166/0.3291, allocations: 1.232 MB / 459.3 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3291, allocations: 0 / 459.3 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003434/0.3294, allocations: 76.02 kB / 459.3 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002203/0.3296, allocations: 73.91 kB / 459.4 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.919e-05/0.3297, allocations: 19.86 kB / 459.4 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002539/0.3322, allocations: 2.862 MB / 462.3 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3322, allocations: 4.031 kB / 462.3 MB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.3336, allocations: 0.8034 MB / 463.1 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003114/0.3339, allocations: 123.4 kB / 463.2 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.279e-05/0.334, allocations: 8.125 kB / 463.2 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004455/0.3345, allocations: 31.98 kB / 463.3 MB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.886e-05/0.3346, allocations: 35.88 kB / 463.3 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.3346, allocations: 19.98 kB / 463.3 MB, free: 4.859 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007645/0.3354, allocations: 0.5186 MB / 463.8 MB, free: 4.348 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3354, allocations: 4 kB / 463.8 MB, free: 4.344 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008799/0.3362, allocations: 204 kB / 464 MB, free: 4.145 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.0002305/0.3365, allocations: 123.1 kB / 464.1 MB, free: 4.016 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.3378, allocations: 0.6902 MB / 464.8 MB, free: 3.301 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3378, allocations: 4.188 kB / 464.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007283/0.3385, allocations: 440.8 kB / 465.3 MB, free: 2.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009722/0.3395, allocations: 199.2 kB / 465.5 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003107/0.3426, allocations: 1.749 MB / 467.2 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.343, allocations: 430.4 kB / 467.6 MB, free: 404 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000365/0.3434, allocations: 102.6 kB / 467.7 MB, free: 296 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.3435, allocations: 55.44 kB / 467.8 MB, free: 240 kB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3435, allocations: 0 / 467.8 MB, free: 240 kB / 366.1 MB Notification: Performance of Templates: time 0.02229/0.3658, allocations: 11.72 MB / 479.5 MB, free: 4.738 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: 5.119592320173979]