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.000858/0.000858, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009797/0.0009797, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8998/0.8998, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 2.174e-06/2.174e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.096e-05/2.313e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.008103/0.008126, allocations: 10.26 MB / 334.8 MB, free: 5.633 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003936/0.01206, allocations: 3.099 MB / 337.9 MB, free: 2.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005024/0.01257, allocations: 39.88 kB / 338 MB, free: 2.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.01359, allocations: 0.6244 MB / 338.6 MB, free: 1.852 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008926/0.01448, allocations: 0.7597 MB / 339.4 MB, free: 1.086 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004569/0.01494, allocations: 403.4 kB / 339.7 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001452/0.01639, allocations: 2.338 MB / 342.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006492/0.01704, allocations: 0.6029 MB / 342.7 MB, free: 13.69 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.01812, allocations: 1.317 MB / 344 MB, free: 12.37 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006232/0.01874, allocations: 0.6542 MB / 344.7 MB, free: 11.71 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.01892, allocations: 216 kB / 344.9 MB, free: 11.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002517/0.01918, allocations: 252 kB / 345.1 MB, free: 11.26 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002027/0.01938, allocations: 442.3 kB / 345.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004749/0.01985, allocations: 0.6976 MB / 346.2 MB, free: 10.12 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001674/0.02153, allocations: 2.683 MB / 348.9 MB, free: 7.434 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.02153, allocations: 4 kB / 348.9 MB, free: 7.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.02153, allocations: 0 / 348.9 MB, free: 7.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.129e-05/0.02157, allocations: 0 / 348.9 MB, free: 7.43 MB / 314.7 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.002189/0.02376, allocations: 2.025 MB / 351 MB, free: 5.359 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.0238, allocations: 8.031 kB / 351 MB, free: 5.352 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001772/0.02398, allocations: 220.1 kB / 351.2 MB, free: 5.125 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000419/0.0244, allocations: 263.6 kB / 351.4 MB, free: 4.867 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.0255, allocations: 0.9757 MB / 352.4 MB, free: 3.859 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.667e-05/0.02555, allocations: 115.5 kB / 352.5 MB, free: 3.746 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.02569, allocations: 164.3 kB / 352.7 MB, free: 3.586 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.02724, allocations: 1.596 MB / 354.3 MB, free: 1.891 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.3e-05/0.02727, allocations: 4 kB / 354.3 MB, free: 1.887 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.717e-05/0.02735, allocations: 60 kB / 354.3 MB, free: 1.828 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.178e-05/0.02737, allocations: 43.94 kB / 354.4 MB, free: 1.785 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.02857, allocations: 0.9747 MB / 355.4 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00467/0.03324, allocations: 5.927 MB / 361.3 MB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005425/0.03378, allocations: 379.9 kB / 361.7 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002708/0.03405, allocations: 216.6 kB / 361.9 MB, free: 9.945 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.03408, allocations: 8.438 kB / 361.9 MB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003345/0.03441, allocations: 317.2 kB / 362.2 MB, free: 9.594 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 1.523e-06/0.03441, allocations: 0 / 362.2 MB, free: 9.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.001865/0.03628, allocations: 1.567 MB / 363.8 MB, free: 7.988 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.03635, allocations: 162.7 kB / 363.9 MB, free: 7.793 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.03747, allocations: 1.312 MB / 365.2 MB, free: 6.465 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.03749, allocations: 37.7 kB / 365.3 MB, free: 6.422 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004233/0.03792, allocations: 0.8856 MB / 366.2 MB, free: 5.527 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.03802, allocations: 210.3 kB / 366.4 MB, free: 5.32 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.03819, allocations: 222.8 kB / 366.6 MB, free: 5.094 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.538e-05/0.03829, allocations: 361.9 kB / 366.9 MB, free: 4.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000325/0.03861, allocations: 256.2 kB / 367.2 MB, free: 4.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005762/0.03919, allocations: 0.925 MB / 368.1 MB, free: 3.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008791/0.04007, allocations: 1.121 MB / 369.2 MB, free: 1.859 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.04008, allocations: 8 kB / 369.2 MB, free: 1.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001187/0.04126, allocations: 1.201 MB / 370.4 MB, free: 0.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/0.0413, allocations: 42.55 kB / 370.5 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/0.04131, allocations: 20 kB / 370.5 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001484/0.04146, allocations: 65.7 kB / 370.6 MB, free: 500 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004639/0.04192, allocations: 267.5 kB / 370.8 MB, free: 232 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/0.04327, allocations: 2.57 MB / 373.4 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004268/0.0437, allocations: 75.88 kB / 373.5 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.65e-05/0.04375, allocations: 60 kB / 373.5 MB, free: 13.3 MB / 346.7 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.0003264/0.04407, allocations: 357.4 kB / 373.9 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.314e-05/0.04416, allocations: 139.1 kB / 374 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006227/0.04479, allocations: 0.5513 MB / 374.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.04479, allocations: 4 kB / 374.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.04479, allocations: 3.984 kB / 374.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.0448, allocations: 4 kB / 374.6 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001621/0.04642, allocations: 1.702 MB / 376.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.04642, allocations: 480 / 376.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002332/0.04665, allocations: 111.8 kB / 376.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.349e-05/0.04674, allocations: 45.7 kB / 376.4 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.04676, allocations: 19.94 kB / 376.4 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/0.04798, allocations: 2.523 MB / 379 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.04798, allocations: 7.938 kB / 379 MB, free: 7.469 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008235/0.04881, allocations: 0.9234 MB / 379.9 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002343/0.04904, allocations: 183.1 kB / 380.1 MB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.94e-05/0.04912, allocations: 28 kB / 380.1 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000277/0.0494, allocations: 31.97 kB / 380.1 MB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.15e-05/0.04948, allocations: 55.8 kB / 380.2 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.0495, allocations: 20 kB / 380.2 MB, free: 6.164 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007408/0.05024, allocations: 0.8461 MB / 381.1 MB, free: 5.316 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05024, allocations: 0 / 381.1 MB, free: 5.316 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006009/0.05084, allocations: 307.9 kB / 381.4 MB, free: 5.016 MB / 346.7 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.001097/0.05194, allocations: 1.495 MB / 382.9 MB, free: 3.441 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.05304, allocations: 0.9304 MB / 383.8 MB, free: 2.473 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.05304, allocations: 4 kB / 383.8 MB, free: 2.469 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003722/0.05341, allocations: 452.8 kB / 384.2 MB, free: 2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008488/0.05426, allocations: 346.5 kB / 384.6 MB, free: 1.672 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.06549, allocations: 10.96 MB / 395.5 MB, free: 5.859 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/0.06589, allocations: 0.5966 MB / 396.1 MB, free: 5.227 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003542/0.06625, allocations: 167.3 kB / 396.3 MB, free: 5.059 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004451/0.06669, allocations: 0.5706 MB / 396.9 MB, free: 4.488 MB / 362.7 MB Notification: Performance of SimCode: time 6.01e-07/0.06669, allocations: 0 / 396.9 MB, free: 4.488 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04215/0.1088, allocations: 30.17 MB / 427 MB, free: 6.699 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.613/7.722, allocations: 6.812 kB / 427 MB, free: 6.695 MB / 394.7 MB " [Timeout remaining time 652] (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/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 10.609537363052368]