Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001374/0.001374, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001352/0.001352, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.376/1.376, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_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_0_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.001597/0.001597, allocations: 51.92 kB / 365.7 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09917/0.1008, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01462/0.1154, allocations: 11.79 MB / 429.6 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006941/0.1223, allocations: 3.238 MB / 432.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.1238, allocations: 35.94 kB / 432.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00206/0.1259, allocations: 0.6713 MB / 433.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002507/0.1284, allocations: 0.7329 MB / 434.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.1295, allocations: 391.5 kB / 434.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003262/0.1328, allocations: 2.25 MB / 436.9 MB, free: 9.426 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001186/0.134, allocations: 0.6494 MB / 437.5 MB, free: 8.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001277/0.1353, allocations: 0.8405 MB / 438.4 MB, free: 7.887 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001096/0.1364, allocations: 0.9139 MB / 439.3 MB, free: 6.969 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002695/0.1366, allocations: 216 kB / 439.5 MB, free: 6.758 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004404/0.1371, allocations: 260 kB / 439.8 MB, free: 6.504 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003599/0.1374, allocations: 430.4 kB / 440.2 MB, free: 6.082 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001007/0.1384, allocations: 1.019 MB / 441.2 MB, free: 5.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002915/0.1413, allocations: 2.689 MB / 443.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1414, allocations: 3.938 kB / 443.9 MB, free: 2.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1414, allocations: 3.938 kB / 443.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.165e-05/0.1414, allocations: 4 kB / 443.9 MB, free: 2.348 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.003622/0.145, allocations: 2.109 MB / 446 MB, free: 176 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1451, allocations: 8.031 kB / 446 MB, free: 168 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1795/0.3245, allocations: 224 kB / 446.2 MB, free: 30.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009505/0.3255, allocations: 261.5 kB / 446.5 MB, free: 30.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001567/0.327, allocations: 1.049 MB / 447.5 MB, free: 29.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.842e-05/0.3271, allocations: 117.2 kB / 447.7 MB, free: 29.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/0.3273, allocations: 156.3 kB / 447.8 MB, free: 29.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002093/0.3294, allocations: 1.481 MB / 449.3 MB, free: 29.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.983e-05/0.3294, allocations: 20.02 kB / 449.3 MB, free: 29.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.3295, allocations: 63.16 kB / 449.4 MB, free: 29.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.033e-05/0.3296, allocations: 38.44 kB / 449.4 MB, free: 29.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.3311, allocations: 0.9745 MB / 450.4 MB, free: 29.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007192/0.3383, allocations: 6.528 MB / 456.9 MB, free: 24.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008403/0.3391, allocations: 390.7 kB / 457.3 MB, free: 24.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003713/0.3395, allocations: 198.3 kB / 457.5 MB, free: 24.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.935e-05/0.3395, allocations: 5.938 kB / 457.5 MB, free: 24.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004894/0.34, allocations: 272.8 kB / 457.8 MB, free: 24.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 1.903e-06/0.34, allocations: 0 / 457.8 MB, free: 24.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.002995/0.343, allocations: 1.782 MB / 459.5 MB, free: 23.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.3431, allocations: 162.3 kB / 459.7 MB, free: 23.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.3448, allocations: 1.282 MB / 461 MB, free: 22.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.3449, allocations: 38.84 kB / 461 MB, free: 22.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006218/0.3455, allocations: 0.893 MB / 461.9 MB, free: 21.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.3456, allocations: 215.8 kB / 462.1 MB, free: 21.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/0.3459, allocations: 221.6 kB / 462.3 MB, free: 21.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.045e-05/0.3459, allocations: 350.7 kB / 462.7 MB, free: 21.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000416/0.3464, allocations: 227.5 kB / 462.9 MB, free: 21.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006238/0.347, allocations: 0.8052 MB / 463.7 MB, free: 20.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.348, allocations: 1.123 MB / 464.8 MB, free: 19.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.348, allocations: 9.531 kB / 464.8 MB, free: 19.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001757/0.3498, allocations: 1.178 MB / 466 MB, free: 18.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.016e-05/0.3498, allocations: 43.42 kB / 466.1 MB, free: 18.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-05/0.3498, allocations: 19.31 kB / 466.1 MB, free: 18.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002345/0.3501, allocations: 64.69 kB / 466.1 MB, free: 18.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007742/0.3509, allocations: 267 kB / 466.4 MB, free: 18.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.3522, allocations: 2.781 MB / 469.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008984/0.3531, allocations: 67.06 kB / 469.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.433e-05/0.3531, allocations: 65.56 kB / 469.3 MB, free: 15.89 MB / 366.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.000457/0.3536, allocations: 357.2 kB / 469.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.3537, allocations: 138.4 kB / 469.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009151/0.3546, allocations: 0.5524 MB / 470.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.3547, allocations: 5.25 kB / 470.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3547, allocations: 1.406 kB / 470.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.3547, allocations: 3.656 kB / 470.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002636/0.3573, allocations: 1.865 MB / 472.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.3573, allocations: 5.609 kB / 472.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004157/0.3577, allocations: 110.6 kB / 472.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001325/0.3579, allocations: 49.03 kB / 472.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.3579, allocations: 16.61 kB / 472.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.359, allocations: 2.739 MB / 475.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.359, allocations: 10.33 kB / 475.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.3603, allocations: 0.925 MB / 476.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003833/0.3607, allocations: 261.7 kB / 476.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.3608, allocations: 21.27 kB / 476.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005122/0.3613, allocations: 33.44 kB / 476.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.3615, allocations: 59.56 kB / 476.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.3615, allocations: 18.75 kB / 476.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00118/0.3627, allocations: 0.8443 MB / 477.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3627, allocations: 1.094 kB / 477.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0013/0.364, allocations: 303.9 kB / 477.6 MB, free: 10.2 MB / 366.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.001563/0.3655, allocations: 1.52 MB / 479.1 MB, free: 9.059 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.367, allocations: 0.8967 MB / 480 MB, free: 8.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.367, allocations: 1.312 kB / 480 MB, free: 8.551 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005935/0.3676, allocations: 466.5 kB / 480.5 MB, free: 8.242 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.369, allocations: 331 kB / 480.8 MB, free: 8.113 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/0.3815, allocations: 10.93 MB / 491.7 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007323/0.3822, allocations: 1.185 MB / 492.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000653/0.3829, allocations: 164.9 kB / 493.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007416/0.3836, allocations: 0.5735 MB / 493.6 MB, free: 14.73 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3836, allocations: 0 / 493.6 MB, free: 14.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07075/0.4544, allocations: 27.99 MB / 0.5094 GB, free: 3.082 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.66, allocations: 4.062 kB / 0.5094 GB, free: 3.078 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.41890842001885]