Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.001372/0.001372, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001388/0.001388, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.458/1.458, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.DCEE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1093, allocations: 53.32 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.2247/0.334, allocations: 8.033 MB / 434.4 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004536/0.3385, allocations: 2.629 MB / 437 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008044/0.3393, allocations: 29.69 kB / 437 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.3407, allocations: 0.5693 MB / 437.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001236/0.3419, allocations: 492.9 kB / 438.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005053/0.3425, allocations: 238.5 kB / 438.3 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001563/0.344, allocations: 1.429 MB / 439.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005859/0.3446, allocations: 407.7 kB / 440.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000752/0.3454, allocations: 0.5708 MB / 440.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006512/0.346, allocations: 0.5765 MB / 441.3 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001827/0.3462, allocations: 135.5 kB / 441.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003695/0.3466, allocations: 176.8 kB / 441.6 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001802/0.3467, allocations: 276.2 kB / 441.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005162/0.3473, allocations: 0.6408 MB / 442.5 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002204/0.3495, allocations: 1.709 MB / 444.2 MB, free: 2.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.924e-06/0.3495, allocations: 7.938 kB / 444.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3495, allocations: 1.469 kB / 444.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.785e-05/0.3495, allocations: 0 / 444.2 MB, free: 2.648 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.00293/0.3524, allocations: 1.453 MB / 445.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.3525, allocations: 8.969 kB / 445.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000171/0.3527, allocations: 157.4 kB / 445.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006033/0.3533, allocations: 175.7 kB / 446 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.3545, allocations: 0.7309 MB / 446.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.664e-05/0.3545, allocations: 78.27 kB / 446.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.3547, allocations: 95.94 kB / 446.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.3562, allocations: 0.9246 MB / 447.8 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/0.3562, allocations: 5.047 kB / 447.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.97e-05/0.3563, allocations: 41.12 kB / 447.9 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.381e-05/0.3563, allocations: 24.38 kB / 447.9 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.3575, allocations: 0.622 MB / 448.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005726/0.3632, allocations: 3.894 MB / 452.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006153/0.3638, allocations: 337.7 kB / 452.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003057/0.3641, allocations: 137.8 kB / 452.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.346e-05/0.3642, allocations: 4.219 kB / 452.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.3642, allocations: 37.36 kB / 452.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.954e-06/0.3642, allocations: 0 / 452.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002606/0.3668, allocations: 1.208 MB / 454.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.3669, allocations: 80.7 kB / 454.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.3681, allocations: 0.8202 MB / 455 MB, free: 11.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.3681, allocations: 35.08 kB / 455 MB, free: 11.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004595/0.3686, allocations: 0.5872 MB / 455.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.3687, allocations: 135.5 kB / 455.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/0.3689, allocations: 125.4 kB / 455.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.369, allocations: 335.3 kB / 456.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003111/0.3694, allocations: 147.2 kB / 456.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000594/0.3699, allocations: 457.8 kB / 456.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009552/0.3709, allocations: 0.64 MB / 457.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3709, allocations: 2.562 kB / 457.5 MB, free: 9.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001245/0.3722, allocations: 0.6919 MB / 458.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.3722, allocations: 9.156 kB / 458.2 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.3722, allocations: 10.06 kB / 458.2 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/0.3724, allocations: 35.16 kB / 458.2 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004778/0.3728, allocations: 162.5 kB / 458.4 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.3742, allocations: 1.396 MB / 459.8 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005583/0.3747, allocations: 32.73 kB / 459.8 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.548e-05/0.3748, allocations: 31.88 kB / 459.8 MB, free: 8.094 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * Single equations (assignments): 83 * 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.0004097/0.3752, allocations: 256 kB / 460.1 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.3753, allocations: 91.88 kB / 460.2 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008059/0.3761, allocations: 379.3 kB / 460.5 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3761, allocations: 3.406 kB / 460.5 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3761, allocations: 4.812 kB / 460.5 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3761, allocations: 2.969 kB / 460.5 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.3783, allocations: 1.261 MB / 461.8 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.3783, allocations: 5.125 kB / 461.8 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003128/0.3786, allocations: 72.3 kB / 461.9 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.248e-05/0.3787, allocations: 27.84 kB / 461.9 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.3788, allocations: 9.344 kB / 461.9 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.3799, allocations: 1.37 MB / 463.3 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.38, allocations: 2.094 kB / 463.3 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.3811, allocations: 0.6364 MB / 463.9 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002994/0.3814, allocations: 195.7 kB / 464.1 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.658e-05/0.3815, allocations: 7.875 kB / 464.1 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003806/0.3819, allocations: 27.7 kB / 464.1 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.085e-05/0.382, allocations: 36.36 kB / 464.2 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.382, allocations: 8.719 kB / 464.2 MB, free: 4.621 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000813/0.3828, allocations: 0.5568 MB / 464.7 MB, free: 4.305 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3828, allocations: 4 kB / 464.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008365/0.3836, allocations: 196.5 kB / 464.9 MB, free: 4.277 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * 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.001585/0.3852, allocations: 1.195 MB / 466.1 MB, free: 3.301 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.3863, allocations: 499.1 kB / 466.6 MB, free: 3.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.3863, allocations: 1.25 kB / 466.6 MB, free: 3.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004518/0.3867, allocations: 260.6 kB / 466.9 MB, free: 2.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.3878, allocations: 212.2 kB / 467.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.3987, allocations: 7.129 MB / 474.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006749/0.3994, allocations: 0.9997 MB / 475.2 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003975/0.3998, allocations: 98.55 kB / 475.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005182/0.4003, allocations: 373.8 kB / 475.7 MB, free: 12.66 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4003, allocations: 0 / 475.7 MB, free: 12.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06203/0.4624, allocations: 18.06 MB / 493.7 MB, free: 12.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.34, allocations: 3.984 kB / 493.7 MB, free: 12.1 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.21417736983858]