Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.001481/0.001481, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001489/0.001489, allocations: 188.5 kB / 24.49 MB, free: 3.941 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.422/1.422, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 51.92 kB / 371.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2625, allocations: 52.18 MB / 423.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009355/0.2718, allocations: 7.142 MB / 430.5 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004401/0.2762, allocations: 2.451 MB / 433 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007186/0.2769, allocations: 27.88 kB / 433 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001489/0.2784, allocations: 0.5153 MB / 433.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001484/0.2799, allocations: 0.4964 MB / 434 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005773/0.2805, allocations: 247.7 kB / 434.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00169/0.2822, allocations: 1.482 MB / 435.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006523/0.2828, allocations: 395.3 kB / 436.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007546/0.2836, allocations: 0.5681 MB / 436.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007042/0.2843, allocations: 0.5989 MB / 437.3 MB, free: 388 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001619/0.2845, allocations: 140 kB / 437.4 MB, free: 248 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000327/0.2848, allocations: 176 kB / 437.6 MB, free: 72 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002485/0.285, allocations: 282.9 kB / 437.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005429/0.2856, allocations: 0.5366 MB / 438.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002035/0.2876, allocations: 1.743 MB / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.255e-06/0.2876, allocations: 4 kB / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.2876, allocations: 0 / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.114e-05/0.2876, allocations: 0 / 440.1 MB, free: 13.5 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002491/0.2901, allocations: 1.403 MB / 441.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.2902, allocations: 12.03 kB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.069e-05/0.2902, allocations: 30.19 kB / 441.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.2904, allocations: 148.4 kB / 441.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006542/0.291, allocations: 192 kB / 441.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.2923, allocations: 0.6764 MB / 442.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.176e-05/0.2924, allocations: 74 kB / 442.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.2925, allocations: 100 kB / 442.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.2943, allocations: 1.035 MB / 443.8 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.31e-05/0.2943, allocations: 3.953 kB / 443.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.461e-05/0.2944, allocations: 47.94 kB / 443.8 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.2944, allocations: 24 kB / 443.9 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.2956, allocations: 0.6363 MB / 444.5 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005119/0.3008, allocations: 3.482 MB / 448 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000659/0.3014, allocations: 354.6 kB / 448.3 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005579/0.302, allocations: 253.4 kB / 448.6 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.224e-05/0.302, allocations: 4.328 kB / 448.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.302, allocations: 50.81 kB / 448.6 MB, free: 4.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.154e-06/0.302, allocations: 0 / 448.6 MB, free: 4.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002654/0.3047, allocations: 1.259 MB / 449.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.407e-05/0.3048, allocations: 93.03 kB / 450 MB, free: 3.234 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.3059, allocations: 0.8176 MB / 450.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/0.3059, allocations: 37.7 kB / 450.8 MB, free: 2.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004431/0.3064, allocations: 0.5696 MB / 451.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.3065, allocations: 162.6 kB / 451.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.3067, allocations: 126.6 kB / 451.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3068, allocations: 334 kB / 452 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003319/0.3072, allocations: 169.9 kB / 452.2 MB, free: 1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005664/0.3077, allocations: 485.7 kB / 452.7 MB, free: 392 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009349/0.3087, allocations: 0.6585 MB / 453.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.3087, allocations: 4 kB / 453.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001331/0.31, allocations: 0.7711 MB / 454.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.31, allocations: 12.09 kB / 454.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/0.31, allocations: 19.88 kB / 454.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002861/0.3103, allocations: 81.61 kB / 454.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004914/0.3108, allocations: 147.8 kB / 454.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002656/0.3135, allocations: 2.928 MB / 457.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005657/0.314, allocations: 40.12 kB / 457.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.174e-05/0.3141, allocations: 32 kB / 457.3 MB, free: 11.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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): 82 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004089/0.3145, allocations: 261.5 kB / 457.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.3146, allocations: 87.44 kB / 457.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009307/0.3156, allocations: 499.5 kB / 458.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.3156, allocations: 4 kB / 458.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3156, allocations: 4 kB / 458.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3156, allocations: 0 / 458.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002123/0.3177, allocations: 1.31 MB / 459.5 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3177, allocations: 0 / 459.5 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003092/0.318, allocations: 71.89 kB / 459.6 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002142/0.3182, allocations: 82.02 kB / 459.6 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.3183, allocations: 8 kB / 459.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002524/0.3208, allocations: 2.908 MB / 462.6 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.3208, allocations: 7.969 kB / 462.6 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001239/0.322, allocations: 0.7559 MB / 463.3 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002761/0.3223, allocations: 135.4 kB / 463.5 MB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.692e-05/0.3224, allocations: 12 kB / 463.5 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004015/0.3228, allocations: 19.98 kB / 463.5 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.061e-05/0.3229, allocations: 43.94 kB / 463.5 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.788e-05/0.3229, allocations: 16 kB / 463.5 MB, free: 4.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007626/0.3237, allocations: 0.5654 MB / 464.1 MB, free: 4.172 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3237, allocations: 0 / 464.1 MB, free: 4.172 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008088/0.3245, allocations: 204 kB / 464.3 MB, free: 3.973 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0016/0.3261, allocations: 1.35 MB / 465.7 MB, free: 2.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.3273, allocations: 0.6616 MB / 466.3 MB, free: 1.883 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3273, allocations: 0 / 466.3 MB, free: 1.883 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006516/0.3279, allocations: 431 kB / 466.7 MB, free: 1.438 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.3289, allocations: 211.1 kB / 466.9 MB, free: 1.234 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.3393, allocations: 7.33 MB / 474.3 MB, free: 9.465 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.3398, allocations: 425.8 kB / 474.7 MB, free: 9.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003805/0.3402, allocations: 107.2 kB / 474.8 MB, free: 8.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004598/0.3406, allocations: 371.3 kB / 475.2 MB, free: 8.547 MB / 382.1 MB Notification: Performance of SimCode: time 1.163e-06/0.3406, allocations: 0 / 475.2 MB, free: 8.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05811/0.3987, allocations: 20.64 MB / 495.8 MB, free: 4.293 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.97, allocations: 11.94 kB / 495.8 MB, free: 4.281 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.977811520104297]