Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001378/0.001378, allocations: 116 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.00138/0.00138, allocations: 214.8 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.45/1.45, allocations: 230.6 MB / 257.5 MB, free: 8.016 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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 47.94 kB / 378.3 MB, free: 2.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2514, allocations: 53.36 MB / 431.6 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01507/0.2664, allocations: 11.84 MB / 443.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007156/0.2736, allocations: 3.272 MB / 446.8 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001538/0.2751, allocations: 35.88 kB / 446.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002133/0.2772, allocations: 0.6792 MB / 447.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002572/0.2798, allocations: 0.7328 MB / 448.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.2811, allocations: 399.5 kB / 448.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003216/0.2843, allocations: 2.242 MB / 450.8 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.2854, allocations: 0.6534 MB / 451.5 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.2865, allocations: 0.8795 MB / 452.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001082/0.2876, allocations: 0.9061 MB / 453.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002654/0.2878, allocations: 220 kB / 453.5 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000427/0.2883, allocations: 260 kB / 453.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003642/0.2886, allocations: 430.4 kB / 454.2 MB, free: 220 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009789/0.2896, allocations: 1.015 MB / 455.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003/0.2926, allocations: 2.693 MB / 457.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2926, allocations: 0 / 457.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2926, allocations: 0 / 457.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.485e-05/0.2926, allocations: 0 / 457.9 MB, free: 12.49 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003542/0.2962, allocations: 2.045 MB / 459.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2962, allocations: 8.031 kB / 459.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008076/0.297, allocations: 263.6 kB / 460.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001767/0.2988, allocations: 0.9687 MB / 461.1 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.2989, allocations: 123.3 kB / 461.3 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/0.2991, allocations: 159.9 kB / 461.4 MB, free: 8.855 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002497/0.3016, allocations: 1.487 MB / 462.9 MB, free: 7.293 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.047e-05/0.3017, allocations: 11.89 kB / 462.9 MB, free: 7.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.3018, allocations: 60 kB / 463 MB, free: 7.223 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.588e-05/0.3018, allocations: 43.98 kB / 463 MB, free: 7.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001929/0.3038, allocations: 0.9747 MB / 464 MB, free: 6.199 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008115/0.3119, allocations: 6.388 MB / 470.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008235/0.3127, allocations: 379.1 kB / 470.8 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004307/0.3131, allocations: 199.7 kB / 470.9 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.3132, allocations: 4.438 kB / 471 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005256/0.3137, allocations: 276.8 kB / 471.2 MB, free: 14.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 1.733e-06/0.3137, allocations: 0 / 471.2 MB, free: 14.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003055/0.3167, allocations: 1.56 MB / 472.8 MB, free: 13 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.3169, allocations: 166.7 kB / 472.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.3186, allocations: 1.277 MB / 474.2 MB, free: 11.51 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.359e-05/0.3186, allocations: 37.7 kB / 474.3 MB, free: 11.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007361/0.3193, allocations: 0.8934 MB / 475.2 MB, free: 10.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.3195, allocations: 214.3 kB / 475.4 MB, free: 10.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002863/0.3198, allocations: 222.7 kB / 475.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.32, allocations: 361.8 kB / 475.9 MB, free: 9.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004828/0.3205, allocations: 234.5 kB / 476.2 MB, free: 9.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009452/0.3214, allocations: 0.8033 MB / 477 MB, free: 8.465 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001545/0.3229, allocations: 1.113 MB / 478.1 MB, free: 7.082 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.206e-06/0.323, allocations: 4 kB / 478.1 MB, free: 7.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002025/0.325, allocations: 1.172 MB / 479.3 MB, free: 5.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.179e-05/0.325, allocations: 44.2 kB / 479.3 MB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.3251, allocations: 20 kB / 479.3 MB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002291/0.3253, allocations: 69.58 kB / 479.4 MB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008161/0.3261, allocations: 263.6 kB / 479.6 MB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002251/0.3284, allocations: 2.586 MB / 482.2 MB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008616/0.3292, allocations: 71.92 kB / 482.3 MB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.248e-05/0.3293, allocations: 56 kB / 482.4 MB, free: 2.551 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005545/0.3298, allocations: 365.3 kB / 482.7 MB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.33, allocations: 139.1 kB / 482.8 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001091/0.3311, allocations: 0.5473 MB / 483.4 MB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.3311, allocations: 8 kB / 483.4 MB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3311, allocations: 0 / 483.4 MB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.3311, allocations: 3.984 kB / 483.4 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002861/0.334, allocations: 1.834 MB / 485.2 MB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.334, allocations: 4 kB / 485.2 MB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004444/0.3344, allocations: 108.3 kB / 485.4 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001438/0.3346, allocations: 45.64 kB / 485.4 MB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.3346, allocations: 19.98 kB / 485.4 MB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002093/0.3367, allocations: 2.531 MB / 487.9 MB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3367, allocations: 11.98 kB / 488 MB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.3382, allocations: 0.9268 MB / 488.9 MB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004082/0.3386, allocations: 183.1 kB / 489.1 MB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.3388, allocations: 20 kB / 489.1 MB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005257/0.3393, allocations: 31.97 kB / 489.1 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.3394, allocations: 55.86 kB / 489.2 MB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.3395, allocations: 20 kB / 489.2 MB, free: 11.26 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.3407, allocations: 0.85 MB / 490 MB, free: 10.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3407, allocations: 0 / 490 MB, free: 10.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001069/0.3418, allocations: 307.9 kB / 490.3 MB, free: 10.11 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.0002214/0.342, allocations: 135 kB / 490.5 MB, free: 9.973 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.3435, allocations: 0.9049 MB / 491.4 MB, free: 9.031 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.3436, allocations: 4 kB / 491.4 MB, free: 9.027 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007203/0.3443, allocations: 450.3 kB / 491.8 MB, free: 8.562 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/0.3457, allocations: 338.7 kB / 492.2 MB, free: 8.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004027/0.3497, allocations: 2.55 MB / 494.7 MB, free: 5.609 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008418/0.3506, allocations: 1.182 MB / 495.9 MB, free: 4.398 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004883/0.351, allocations: 167.3 kB / 496 MB, free: 4.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.3512, allocations: 95.36 kB / 496.1 MB, free: 4.137 MB / 398.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3512, allocations: 0 / 496.1 MB, free: 4.137 MB / 398.1 MB Notification: Performance of Templates: time 0.02987/0.3811, allocations: 16.05 MB / 0.5002 GB, free: 4.254 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.259982703020796]