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.00125/0.00125, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001373/0.001373, allocations: 208.5 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.413/1.413, allocations: 230.6 MB / 257.5 MB, free: 7.797 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 51.91 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2469, allocations: 53.37 MB / 431.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01264/0.2596, allocations: 10.23 MB / 441.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006373/0.2659, allocations: 3.084 MB / 444.4 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001304/0.2673, allocations: 43.81 kB / 444.5 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.269, allocations: 0.6207 MB / 445.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001903/0.2709, allocations: 0.7251 MB / 445.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008428/0.2717, allocations: 407.5 kB / 446.2 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002664/0.2744, allocations: 2.248 MB / 448.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.2754, allocations: 0.6459 MB / 449.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001312/0.2767, allocations: 0.8834 MB / 450 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001261/0.278, allocations: 0.9139 MB / 450.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003069/0.2783, allocations: 220 kB / 451.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000464/0.2787, allocations: 252 kB / 451.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004006/0.2791, allocations: 430.5 kB / 451.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008888/0.28, allocations: 0.8283 MB / 452.6 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00293/0.283, allocations: 2.704 MB / 455.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.283, allocations: 0 / 455.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.283, allocations: 0 / 455.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.519e-05/0.283, allocations: 3.938 kB / 455.3 MB, free: 14.32 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.003678/0.2867, allocations: 2.037 MB / 457.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.2867, allocations: 8.031 kB / 457.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002667/0.287, allocations: 228 kB / 457.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008161/0.2878, allocations: 263.6 kB / 457.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00187/0.2897, allocations: 0.9764 MB / 458.8 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.2898, allocations: 119.2 kB / 458.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002263/0.29, allocations: 159.9 kB / 459.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002695/0.2927, allocations: 1.588 MB / 460.7 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.897e-05/0.2928, allocations: 4 kB / 460.7 MB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/0.2929, allocations: 64 kB / 460.7 MB, free: 8.695 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.48e-05/0.2929, allocations: 40 kB / 460.8 MB, free: 8.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001816/0.2947, allocations: 0.9707 MB / 461.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008438/0.3032, allocations: 5.944 MB / 467.7 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008098/0.304, allocations: 372.7 kB / 468.1 MB, free: 1.016 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004305/0.3044, allocations: 210.1 kB / 468.3 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.3045, allocations: 4.438 kB / 468.3 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000606/0.3051, allocations: 320.2 kB / 468.6 MB, free: 468 kB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.455e-06/0.3051, allocations: 0 / 468.6 MB, free: 468 kB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003459/0.3085, allocations: 1.56 MB / 470.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.3086, allocations: 166.7 kB / 470.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001887/0.3105, allocations: 1.312 MB / 471.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.913e-05/0.3106, allocations: 37.7 kB / 471.6 MB, free: 13.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008479/0.3114, allocations: 0.8972 MB / 472.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.3116, allocations: 210.3 kB / 472.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003002/0.3119, allocations: 222.8 kB / 473 MB, free: 11.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.3121, allocations: 357.9 kB / 473.3 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004873/0.3126, allocations: 260.2 kB / 473.6 MB, free: 11.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009938/0.3136, allocations: 0.9289 MB / 474.5 MB, free: 10.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.3152, allocations: 1.109 MB / 475.6 MB, free: 8.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.426e-05/0.3152, allocations: 15.94 kB / 475.6 MB, free: 8.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002134/0.3174, allocations: 1.205 MB / 476.8 MB, free: 7.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.232e-05/0.3174, allocations: 41.7 kB / 476.9 MB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.749e-05/0.3175, allocations: 24.62 kB / 476.9 MB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002549/0.3177, allocations: 73.62 kB / 477 MB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000789/0.3185, allocations: 255.6 kB / 477.2 MB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/0.3205, allocations: 2.574 MB / 479.8 MB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009926/0.3215, allocations: 67.88 kB / 479.9 MB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.3217, allocations: 64 kB / 479.9 MB, free: 4.156 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.0008127/0.3225, allocations: 359.2 kB / 480.3 MB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000281/0.3227, allocations: 143 kB / 480.4 MB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.3239, allocations: 0.5513 MB / 481 MB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.3239, allocations: 4 kB / 481 MB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3239, allocations: 0 / 481 MB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3239, allocations: 0 / 481 MB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002824/0.3267, allocations: 1.705 MB / 482.7 MB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.3267, allocations: 4 kB / 482.7 MB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004527/0.3272, allocations: 112.3 kB / 482.8 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001577/0.3273, allocations: 41.7 kB / 482.8 MB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.3274, allocations: 20 kB / 482.8 MB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/0.3294, allocations: 2.531 MB / 485.4 MB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.3294, allocations: 4 kB / 485.4 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.3309, allocations: 0.9344 MB / 486.3 MB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004618/0.3314, allocations: 191.1 kB / 486.5 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.3315, allocations: 16 kB / 486.5 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005478/0.3321, allocations: 31.97 kB / 486.5 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3322, allocations: 55.8 kB / 486.6 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.3322, allocations: 12 kB / 486.6 MB, free: 13.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001226/0.3334, allocations: 0.8539 MB / 487.5 MB, free: 12.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3334, allocations: 0 / 487.5 MB, free: 12.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001147/0.3346, allocations: 304 kB / 487.8 MB, free: 11.86 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.001916/0.3365, allocations: 1.507 MB / 489.3 MB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.3381, allocations: 0.9226 MB / 490.2 MB, free: 9.309 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.3381, allocations: 8.188 kB / 490.2 MB, free: 9.301 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007126/0.3388, allocations: 452.8 kB / 490.6 MB, free: 8.832 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.3404, allocations: 340.2 kB / 491 MB, free: 8.512 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01568/0.356, allocations: 11.04 MB / 0.4903 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006999/0.3567, allocations: 0.5927 MB / 0.4908 GB, free: 11.99 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006174/0.3574, allocations: 171.3 kB / 0.491 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007143/0.3581, allocations: 0.5735 MB / 0.4916 GB, free: 11.25 MB / 414.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3581, allocations: 0 / 0.4916 GB, free: 11.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07908/0.4372, allocations: 30.48 MB / 0.5213 GB, free: 13.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.4, allocations: 10.67 kB / 0.5213 GB, free: 13.2 MB / 446.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.118739994999487]