Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.001356/0.001356, allocations: 116.9 kB / 18.49 MB, free: 4.559 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.001367/0.001367, allocations: 217.4 kB / 21.46 MB, free: 1.602 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.425/1.425, allocations: 230.6 MB / 254.8 MB, free: 15.09 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_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 51.92 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1075, allocations: 53.33 MB / 427 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.2245/0.332, allocations: 7.18 MB / 434.2 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004256/0.3362, allocations: 2.386 MB / 436.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001233/0.3375, allocations: 25.41 kB / 436.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001682/0.3391, allocations: 0.5092 MB / 437.1 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001489/0.3406, allocations: 417.3 kB / 437.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005132/0.3411, allocations: 200.9 kB / 437.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001515/0.3427, allocations: 1.202 MB / 438.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005987/0.3433, allocations: 339.7 kB / 439.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000897/0.3442, allocations: 479.4 kB / 439.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006222/0.3448, allocations: 0.4909 MB / 440.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.3449, allocations: 113.8 kB / 440.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003759/0.3453, allocations: 153.4 kB / 440.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.3455, allocations: 229 kB / 440.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000516/0.346, allocations: 0.5496 MB / 441.3 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002013/0.348, allocations: 1.432 MB / 442.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.348, allocations: 0 / 442.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.348, allocations: 0 / 442.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.707e-05/0.348, allocations: 1.125 kB / 442.7 MB, free: 4.023 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002163/0.3502, allocations: 1.281 MB / 444 MB, free: 3.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.3503, allocations: 10.16 kB / 444 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.243e-05/0.3503, allocations: 25 kB / 444 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001283/0.3504, allocations: 123.7 kB / 444.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004991/0.3509, allocations: 153.6 kB / 444.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009976/0.3519, allocations: 0.6514 MB / 444.9 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.986e-05/0.352, allocations: 61.88 kB / 445 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.3521, allocations: 88.17 kB / 445.1 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.3535, allocations: 0.7801 MB / 445.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.268e-05/0.3535, allocations: 2.281 kB / 445.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.349e-05/0.3536, allocations: 31.45 kB / 445.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.3536, allocations: 20.03 kB / 445.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001115/0.3547, allocations: 0.5206 MB / 446.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004573/0.3593, allocations: 3.372 MB / 449.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005276/0.3598, allocations: 221.5 kB / 450 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.3601, allocations: 104.9 kB / 450.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.3601, allocations: 2.812 kB / 450.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.3601, allocations: 38.06 kB / 450.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 2.284e-06/0.3601, allocations: 4 kB / 450.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002576/0.3627, allocations: 1.05 MB / 451.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/0.3628, allocations: 84.25 kB / 451.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.3639, allocations: 0.7334 MB / 452 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.364, allocations: 31.8 kB / 452.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000441/0.3644, allocations: 0.5039 MB / 452.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3645, allocations: 106.5 kB / 452.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001799/0.3647, allocations: 113.6 kB / 452.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.3649, allocations: 380.4 kB / 453.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002972/0.3652, allocations: 129.8 kB / 453.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000556/0.3658, allocations: 427.7 kB / 453.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008777/0.3666, allocations: 0.5673 MB / 454.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/0.3666, allocations: 3.375 kB / 454.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001305/0.368, allocations: 0.6219 MB / 454.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.368, allocations: 11.03 kB / 454.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.368, allocations: 9.531 kB / 454.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001862/0.3682, allocations: 33.16 kB / 454.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004398/0.3686, allocations: 138.6 kB / 455.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.3699, allocations: 1.39 MB / 456.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006529/0.3706, allocations: 38.58 kB / 456.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-05/0.3706, allocations: 30.12 kB / 456.5 MB, free: 10.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003985/0.371, allocations: 233.3 kB / 456.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.3712, allocations: 74.52 kB / 456.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007076/0.3719, allocations: 327.9 kB / 457.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3719, allocations: 3.438 kB / 457.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.3719, allocations: 0 / 457.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3719, allocations: 3 kB / 457.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002005/0.3739, allocations: 1.101 MB / 458.3 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3739, allocations: 5.281 kB / 458.3 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.3742, allocations: 58.8 kB / 458.3 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001231/0.3743, allocations: 27 kB / 458.4 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.3743, allocations: 8.469 kB / 458.4 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.3754, allocations: 1.377 MB / 459.7 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3754, allocations: 1.375 kB / 459.7 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.3765, allocations: 0.5479 MB / 460.3 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003702/0.3768, allocations: 175.7 kB / 460.5 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.138e-05/0.3769, allocations: 12.16 kB / 460.5 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/0.3773, allocations: 19.59 kB / 460.5 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.996e-05/0.3773, allocations: 30.7 kB / 460.5 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.3774, allocations: 6.562 kB / 460.5 MB, free: 7.398 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008239/0.3782, allocations: 0.5006 MB / 461 MB, free: 7.176 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3782, allocations: 0 / 461 MB, free: 7.176 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008645/0.3791, allocations: 161.4 kB / 461.2 MB, free: 7.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001513/0.3806, allocations: 1.148 MB / 462.3 MB, free: 6.234 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.3816, allocations: 451.9 kB / 462.8 MB, free: 6.012 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3817, allocations: 0 / 462.8 MB, free: 6.012 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004066/0.3821, allocations: 226.3 kB / 463 MB, free: 5.867 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.3832, allocations: 187.1 kB / 463.2 MB, free: 5.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.3941, allocations: 6.278 MB / 469.5 MB, free: 1.512 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007002/0.3948, allocations: 0.9363 MB / 470.4 MB, free: 0.707 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004646/0.3953, allocations: 88.95 kB / 470.5 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004285/0.3957, allocations: 299.8 kB / 470.8 MB, free: 420 kB / 366.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3957, allocations: 0 / 470.8 MB, free: 420 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04851/0.4442, allocations: 15.61 MB / 486.4 MB, free: 4.266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.6, allocations: 6.469 kB / 486.4 MB, free: 4.262 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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: 16.07495897397166]