Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.001222/0.001222, allocations: 105.1 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.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.001338/0.001338, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.357/1.357, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 47.91 kB / 378.5 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2134, allocations: 53.35 MB / 431.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.00344/0.2168, allocations: 1.864 MB / 433.7 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009311/0.2177, allocations: 462.8 kB / 434.1 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.638e-05/0.2178, allocations: 0 / 434.1 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.905e-05/0.2179, allocations: 19.86 kB / 434.2 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.573e-05/0.218, allocations: 23.72 kB / 434.2 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001481/0.2181, allocations: 35.97 kB / 434.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.2183, allocations: 103.6 kB / 434.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.2184, allocations: 33.56 kB / 434.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.364e-05/0.2185, allocations: 35.86 kB / 434.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.742e-05/0.2186, allocations: 47.78 kB / 434.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.265e-05/0.2186, allocations: 8 kB / 434.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.309e-05/0.2186, allocations: 8 kB / 434.5 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.834e-05/0.2187, allocations: 23.92 kB / 434.5 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.89e-05/0.2187, allocations: 39.78 kB / 434.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.2189, allocations: 103.5 kB / 434.6 MB, free: 3.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.2189, allocations: 8 kB / 434.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2189, allocations: 0 / 434.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.2189, allocations: 0 / 434.6 MB, free: 3.875 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005388/0.2195, allocations: 328.2 kB / 434.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2195, allocations: 12.03 kB / 435 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.356e-05/0.2195, allocations: 384 / 435 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.004e-05/0.2195, allocations: 42.75 kB / 435 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.342e-05/0.2196, allocations: 12.89 kB / 435 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/0.2198, allocations: 138.3 kB / 435.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.2199, allocations: 12.31 kB / 435.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.2199, allocations: 11.95 kB / 435.2 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.2202, allocations: 117 kB / 435.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.2202, allocations: 7.969 kB / 435.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.2202, allocations: 4 kB / 435.3 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2202, allocations: 0 / 435.3 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002311/0.2204, allocations: 75.89 kB / 435.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006734/0.2211, allocations: 458.9 kB / 435.8 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.2213, allocations: 70.61 kB / 435.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.2214, allocations: 40.83 kB / 435.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.2214, allocations: 0 / 435.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.2214, allocations: 38.44 kB / 436 MB, free: 2.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 8.71e-07/0.2214, allocations: 4 kB / 436 MB, free: 2.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.000409/0.2219, allocations: 129.5 kB / 436.1 MB, free: 2.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.2219, allocations: 51.56 kB / 436.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.222, allocations: 129.8 kB / 436.3 MB, free: 2.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.222, allocations: 25.7 kB / 436.3 MB, free: 2.023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.393e-05/0.2221, allocations: 116 kB / 436.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.2221, allocations: 31.73 kB / 436.4 MB, free: 1.875 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-05/0.2222, allocations: 21.72 kB / 436.5 MB, free: 1.848 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.2223, allocations: 330.8 kB / 436.8 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.2224, allocations: 27.98 kB / 436.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.2225, allocations: 72.2 kB / 436.9 MB, free: 1.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.2228, allocations: 100.2 kB / 437 MB, free: 1.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2228, allocations: 4 kB / 437 MB, free: 1.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002963/0.2231, allocations: 137.4 kB / 437.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2231, allocations: 4 kB / 437.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2231, allocations: 0 / 437.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.2231, allocations: 8 kB / 437.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.2233, allocations: 35.92 kB / 437.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.2233, allocations: 8.109 kB / 437.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.215e-05/0.2233, allocations: 8 kB / 437.2 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.2234, allocations: 4 kB / 437.2 MB, free: 1.078 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.2235, allocations: 129.7 kB / 437.3 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.196e-05/0.2235, allocations: 7.953 kB / 437.3 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.499e-05/0.2235, allocations: 16.36 kB / 437.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2235, allocations: 0 / 437.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.2235, allocations: 0 / 437.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.2235, allocations: 0 / 437.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001963/0.2237, allocations: 160.8 kB / 437.5 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2237, allocations: 7.938 kB / 437.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.2239, allocations: 23.92 kB / 437.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.2239, allocations: 0 / 437.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.2239, allocations: 7.984 kB / 437.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2239, allocations: 0 / 437.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2239, allocations: 0 / 437.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004047/0.2243, allocations: 235.3 kB / 437.8 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.444e-05/0.2243, allocations: 11.89 kB / 437.8 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.2243, allocations: 8 kB / 437.8 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.903e-05/0.2244, allocations: 8.031 kB / 437.8 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.556e-05/0.2244, allocations: 4 kB / 437.8 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.2244, allocations: 3.984 kB / 437.8 MB, free: 404 kB / 334.1 MB Notification: Performance of sorting global known variables: time 6.499e-05/0.2245, allocations: 102.5 kB / 437.9 MB, free: 304 kB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2245, allocations: 0 / 437.9 MB, free: 304 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.2248, allocations: 27.81 kB / 437.9 MB, free: 276 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006775/0.2254, allocations: 0.7595 MB / 438.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002508/0.2257, allocations: 79.92 kB / 438.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2257, allocations: 0 / 438.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.874e-05/0.2258, allocations: 36.38 kB / 438.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003166/0.2261, allocations: 28.11 kB / 438.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.2282, allocations: 1.736 MB / 440.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.383e-05/0.2282, allocations: 92.14 kB / 440.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.663e-05/0.2283, allocations: 8.375 kB / 440.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.76e-05/0.2283, allocations: 31.42 kB / 440.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2283, allocations: 0 / 440.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.2515, allocations: 2.633 MB / 443.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.83, allocations: 7.984 kB / 443.3 MB, free: 10.88 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.192351954057813]