Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.00135/0.00135, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001474/0.001474, allocations: 191.3 kB / 24.49 MB, free: 3.961 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.398/1.398, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.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.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 39.94 kB / 371.2 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.286, allocations: 52.2 MB / 423.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.009248/0.2953, allocations: 7.046 MB / 430.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003987/0.2993, allocations: 2.4 MB / 432.8 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004787/0.2997, allocations: 27.88 kB / 432.8 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001324/0.3011, allocations: 0.5092 MB / 433.4 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000918/0.302, allocations: 492.4 kB / 433.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.3024, allocations: 243.7 kB / 434.1 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001508/0.3039, allocations: 1.446 MB / 435.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006408/0.3046, allocations: 399.3 kB / 435.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006862/0.3053, allocations: 0.5564 MB / 436.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007013/0.306, allocations: 0.5833 MB / 437 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001635/0.3061, allocations: 136 kB / 437.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003106/0.3064, allocations: 176 kB / 437.4 MB, free: 332 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.3067, allocations: 279 kB / 437.6 MB, free: 52 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005275/0.3072, allocations: 0.5212 MB / 438.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001812/0.309, allocations: 1.72 MB / 439.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.309, allocations: 4 kB / 439.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.309, allocations: 0 / 439.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.309, allocations: 0 / 439.9 MB, free: 13.79 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.002289/0.3113, allocations: 1.376 MB / 441.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3114, allocations: 8.031 kB / 441.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.541e-05/0.3114, allocations: 30.12 kB / 441.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001758/0.3116, allocations: 152.3 kB / 441.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005958/0.3122, allocations: 180 kB / 441.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.3134, allocations: 0.6684 MB / 442.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.168e-05/0.3134, allocations: 81.98 kB / 442.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.3136, allocations: 95.98 kB / 442.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.3152, allocations: 0.9982 MB / 443.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.993e-05/0.3153, allocations: 3.953 kB / 443.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.992e-05/0.3153, allocations: 44 kB / 443.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/0.3154, allocations: 24 kB / 443.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.3166, allocations: 0.6207 MB / 444.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004708/0.3213, allocations: 3.488 MB / 447.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005584/0.3218, allocations: 250.5 kB / 447.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.3221, allocations: 132.8 kB / 448 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.207e-05/0.3222, allocations: 8 kB / 448 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.3222, allocations: 46.48 kB / 448.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.794e-06/0.3222, allocations: 0 / 448.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002335/0.3245, allocations: 1.054 MB / 449.1 MB, free: 4.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.3246, allocations: 81.11 kB / 449.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.3259, allocations: 0.8292 MB / 450 MB, free: 3.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/0.3259, allocations: 29.7 kB / 450 MB, free: 3.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005208/0.3264, allocations: 0.5773 MB / 450.6 MB, free: 2.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.3265, allocations: 138.8 kB / 450.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.3267, allocations: 130.6 kB / 450.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3269, allocations: 341.9 kB / 451.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003173/0.3272, allocations: 145.9 kB / 451.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005938/0.3278, allocations: 485.7 kB / 451.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008851/0.3287, allocations: 0.6327 MB / 452.5 MB, free: 448 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3287, allocations: 4 kB / 452.5 MB, free: 444 kB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001189/0.3299, allocations: 0.6969 MB / 453.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.3299, allocations: 11.94 kB / 453.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.3299, allocations: 15.98 kB / 453.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001684/0.3301, allocations: 32.84 kB / 453.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004884/0.3306, allocations: 155.7 kB / 453.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/0.3317, allocations: 1.287 MB / 454.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004538/0.3322, allocations: 35.94 kB / 454.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/0.3322, allocations: 32 kB / 454.7 MB, free: 14.05 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.0003353/0.3325, allocations: 258.1 kB / 455 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.3327, allocations: 91.38 kB / 455.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007184/0.3334, allocations: 378.2 kB / 455.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.3334, allocations: 7.938 kB / 455.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.3334, allocations: 0 / 455.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3334, allocations: 3.984 kB / 455.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001766/0.3352, allocations: 1.153 MB / 456.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3352, allocations: 0 / 456.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003363/0.3355, allocations: 71.89 kB / 456.7 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.471e-05/0.3356, allocations: 24.84 kB / 456.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.3356, allocations: 8 kB / 456.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009931/0.3366, allocations: 1.268 MB / 458 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3366, allocations: 3.938 kB / 458 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009989/0.3376, allocations: 0.629 MB / 458.6 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.3378, allocations: 119.4 kB / 458.7 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.275e-05/0.3379, allocations: 11.94 kB / 458.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003571/0.3383, allocations: 28.06 kB / 458.8 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.512e-05/0.3384, allocations: 35.89 kB / 458.8 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.3384, allocations: 12 kB / 458.8 MB, free: 9.703 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007633/0.3391, allocations: 0.5615 MB / 459.4 MB, free: 9.148 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3391, allocations: 0 / 459.4 MB, free: 9.148 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006768/0.3398, allocations: 188 kB / 459.6 MB, free: 8.965 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.001396/0.3412, allocations: 1.2 MB / 460.8 MB, free: 7.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009454/0.3422, allocations: 0.4886 MB / 461.2 MB, free: 7.219 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3422, allocations: 4.312 kB / 461.3 MB, free: 7.215 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004223/0.3426, allocations: 262.4 kB / 461.5 MB, free: 6.945 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009805/0.3436, allocations: 206.7 kB / 461.7 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.3538, allocations: 7.135 MB / 468.8 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/0.3542, allocations: 409 kB / 469.2 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003633/0.3546, allocations: 94.89 kB / 469.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00047/0.3551, allocations: 371.3 kB / 469.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3551, allocations: 0 / 469.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0533/0.4084, allocations: 19.29 MB / 489 MB, free: 11.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.94, allocations: 6.812 kB / 489 MB, free: 11.34 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 17.71341178601142]