Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001695/0.001695, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002019/0.002019, allocations: 203.5 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.5 MB / 257.4 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00239/0.00239, allocations: 67.89 kB / 377.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.3792, allocations: 53.41 MB / 431.1 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.004101/0.3833, allocations: 1.844 MB / 433 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.3844, allocations: 458.8 kB / 433.4 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.3845, allocations: 7.938 kB / 433.4 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.3846, allocations: 15.86 kB / 433.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.649e-05/0.3847, allocations: 23.78 kB / 433.5 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001784/0.3849, allocations: 35.95 kB / 433.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002057/0.3851, allocations: 103.5 kB / 433.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.3853, allocations: 35.25 kB / 433.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.597e-05/0.3854, allocations: 43.78 kB / 433.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.843e-05/0.3855, allocations: 39.78 kB / 433.7 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.3855, allocations: 8 kB / 433.7 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.109e-05/0.3855, allocations: 8 kB / 433.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.941e-05/0.3855, allocations: 19.92 kB / 433.8 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.367e-05/0.3856, allocations: 35.86 kB / 433.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.3858, allocations: 99.56 kB / 433.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3858, allocations: 3.938 kB / 433.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3858, allocations: 4 kB / 433.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.3858, allocations: 0 / 433.9 MB, free: 3.645 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.0005879/0.3864, allocations: 334.1 kB / 434.2 MB, free: 3.289 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.3864, allocations: 11.98 kB / 434.2 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.743e-05/0.3865, allocations: 42.73 kB / 434.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.298e-05/0.3865, allocations: 8.891 kB / 434.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002917/0.3868, allocations: 146.3 kB / 434.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.3868, allocations: 4.562 kB / 434.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/0.3869, allocations: 20.08 kB / 434.4 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.3872, allocations: 122.7 kB / 434.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3872, allocations: 0 / 434.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.3872, allocations: 4 kB / 434.6 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.3872, allocations: 8 kB / 434.6 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.3874, allocations: 63.94 kB / 434.6 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/0.3881, allocations: 454.9 kB / 435.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/0.3883, allocations: 86.53 kB / 435.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.3884, allocations: 40.83 kB / 435.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.3885, allocations: 3.984 kB / 435.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.3885, allocations: 34.56 kB / 435.2 MB, free: 2.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3885, allocations: 0 / 435.2 MB, free: 2.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005953/0.3891, allocations: 125.6 kB / 435.4 MB, free: 2.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.3891, allocations: 55.34 kB / 435.4 MB, free: 1.949 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.3893, allocations: 129.8 kB / 435.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.3893, allocations: 25.7 kB / 435.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.103e-05/0.3894, allocations: 119.9 kB / 435.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.3895, allocations: 23.8 kB / 435.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.607e-05/0.3895, allocations: 33.66 kB / 435.7 MB, free: 1.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3896, allocations: 318.8 kB / 436.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.3898, allocations: 35.97 kB / 436.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.3899, allocations: 67.14 kB / 436.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.3901, allocations: 108.1 kB / 436.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3901, allocations: 4 kB / 436.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003171/0.3905, allocations: 137.5 kB / 436.4 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3905, allocations: 8 kB / 436.4 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.3905, allocations: 0 / 436.4 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.3905, allocations: 4 kB / 436.4 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.3907, allocations: 31.92 kB / 436.4 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.3907, allocations: 0 / 436.4 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.117e-05/0.3908, allocations: 15.98 kB / 436.5 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.3908, allocations: 4 kB / 436.5 MB, free: 0.8359 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.000109/0.3909, allocations: 130.6 kB / 436.6 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.138e-05/0.3909, allocations: 7.953 kB / 436.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.977e-05/0.3909, allocations: 12.38 kB / 436.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3909, allocations: 0 / 436.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.3909, allocations: 7.984 kB / 436.6 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.391, allocations: 0 / 436.6 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002802/0.3912, allocations: 164.8 kB / 436.8 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3912, allocations: 0 / 436.8 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.3914, allocations: 19.98 kB / 436.8 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3914, allocations: 0 / 436.8 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.3914, allocations: 4 kB / 436.8 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3914, allocations: 4 kB / 436.8 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3914, allocations: 4 kB / 436.8 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004156/0.3918, allocations: 235.3 kB / 437 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.145e-05/0.3918, allocations: 7.953 kB / 437.1 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.3918, allocations: 4 kB / 437.1 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.792e-05/0.3919, allocations: 4.094 kB / 437.1 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.392, allocations: 11.92 kB / 437.1 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.392, allocations: 4 kB / 437.1 MB, free: 160 kB / 334.1 MB Notification: Performance of sorting global known variables: time 9.239e-05/0.3921, allocations: 102.5 kB / 437.2 MB, free: 60 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3921, allocations: 0 / 437.2 MB, free: 60 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004536/0.3925, allocations: 23.94 kB / 437.2 MB, free: 36 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.000795/0.3933, allocations: 0.767 MB / 438 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003322/0.3937, allocations: 80.12 kB / 438 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3937, allocations: 0 / 438 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.3938, allocations: 35.97 kB / 438.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.3941, allocations: 22.67 kB / 438.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003374/0.3975, allocations: 1.743 MB / 439.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.3976, allocations: 88.19 kB / 439.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.854e-05/0.3977, allocations: 8.438 kB / 439.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.627e-05/0.3978, allocations: 31.42 kB / 440 MB, free: 13.11 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3978, allocations: 0 / 440 MB, free: 13.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03617/0.434, allocations: 2.952 MB / 442.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.74, allocations: 11.33 kB / 442.9 MB, free: 10.27 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 14.853942567948252]