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.001477/0.001477, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001913/0.001913, allocations: 211 kB / 24.51 MB, free: 3.922 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.472/1.472, allocations: 230.5 MB / 258.2 MB, free: 7.738 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 63.91 kB / 378.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3567, allocations: 53.41 MB / 431.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003628/0.3603, allocations: 1.837 MB / 433.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009312/0.3613, allocations: 462.8 kB / 434.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.002e-05/0.3614, allocations: 7.938 kB / 434.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.3615, allocations: 11.86 kB / 434.2 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.332e-05/0.3616, allocations: 23.78 kB / 434.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001692/0.3617, allocations: 35.95 kB / 434.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001783/0.3619, allocations: 103.6 kB / 434.4 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.362, allocations: 27.27 kB / 434.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.665e-05/0.3621, allocations: 43.8 kB / 434.4 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.586e-05/0.3622, allocations: 51.77 kB / 434.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.409e-05/0.3622, allocations: 8 kB / 434.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.03e-05/0.3623, allocations: 8 kB / 434.5 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.26e-05/0.3623, allocations: 23.92 kB / 434.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.907e-05/0.3623, allocations: 31.86 kB / 434.6 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.3625, allocations: 107.5 kB / 434.7 MB, free: 3.676 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.3625, allocations: 0 / 434.7 MB, free: 3.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3625, allocations: 0 / 434.7 MB, free: 3.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.3625, allocations: 0 / 434.7 MB, free: 3.676 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.0006028/0.3631, allocations: 338.1 kB / 435 MB, free: 3.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3632, allocations: 8.031 kB / 435 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.562e-05/0.3632, allocations: 4.375 kB / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.3632, allocations: 42.73 kB / 435 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.377e-05/0.3633, allocations: 16.83 kB / 435.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000232/0.3635, allocations: 130.4 kB / 435.2 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.3635, allocations: 12.31 kB / 435.2 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.753e-05/0.3636, allocations: 15.95 kB / 435.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002954/0.3638, allocations: 122.7 kB / 435.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3639, allocations: 4 kB / 435.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.3639, allocations: 7.984 kB / 435.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.3639, allocations: 4 kB / 435.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002267/0.3641, allocations: 71.94 kB / 435.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006662/0.3648, allocations: 454.9 kB / 435.9 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.365, allocations: 78.53 kB / 435.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.3651, allocations: 40.84 kB / 436 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.3651, allocations: 0 / 436 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.3652, allocations: 34.56 kB / 436 MB, free: 2.176 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 8.62e-07/0.3652, allocations: 0 / 436 MB, free: 2.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004228/0.3656, allocations: 129.9 kB / 436.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.3656, allocations: 55.34 kB / 436.2 MB, free: 1.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.3657, allocations: 132.7 kB / 436.3 MB, free: 1.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.3658, allocations: 29.7 kB / 436.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.797e-05/0.3659, allocations: 108 kB / 436.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.074e-05/0.3659, allocations: 31.73 kB / 436.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.982e-05/0.3659, allocations: 29.66 kB / 436.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3661, allocations: 326.8 kB / 436.8 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.3662, allocations: 31.97 kB / 436.9 MB, free: 1.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.3663, allocations: 67.39 kB / 436.9 MB, free: 1.191 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/0.3666, allocations: 104.2 kB / 437 MB, free: 1.074 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3666, allocations: 0 / 437 MB, free: 1.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003034/0.3669, allocations: 141.4 kB / 437.2 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3669, allocations: 6.969 kB / 437.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3669, allocations: 8.125 kB / 437.2 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.3669, allocations: 0 / 437.2 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.3671, allocations: 39.91 kB / 437.2 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.3671, allocations: 4 kB / 437.2 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.993e-05/0.3672, allocations: 4 kB / 437.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.3672, allocations: 4 kB / 437.2 MB, free: 0.8672 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.0001217/0.3673, allocations: 133.6 kB / 437.4 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.3673, allocations: 7.953 kB / 437.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.244e-05/0.3674, allocations: 12.38 kB / 437.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3674, allocations: 4 kB / 437.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3674, allocations: 0 / 437.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3674, allocations: 0 / 437.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002115/0.3676, allocations: 164.7 kB / 437.6 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.3676, allocations: 7.984 kB / 437.6 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.3677, allocations: 19.98 kB / 437.6 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.3677, allocations: 0 / 437.6 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.3677, allocations: 0 / 437.6 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3677, allocations: 0 / 437.6 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3677, allocations: 0 / 437.6 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004295/0.3682, allocations: 243.3 kB / 437.8 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.493e-05/0.3682, allocations: 3.953 kB / 437.8 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.488e-05/0.3682, allocations: 8 kB / 437.8 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.266e-05/0.3683, allocations: 12.03 kB / 437.8 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.486e-05/0.3683, allocations: 3.984 kB / 437.8 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.3684, allocations: 4 kB / 437.8 MB, free: 188 kB / 334.1 MB Notification: Performance of sorting global known variables: time 8.154e-05/0.3684, allocations: 99.27 kB / 437.9 MB, free: 88 kB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3684, allocations: 0 / 437.9 MB, free: 88 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002534/0.3687, allocations: 23.88 kB / 438 MB, free: 64 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.000728/0.3694, allocations: 0.767 MB / 438.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002809/0.3697, allocations: 75.92 kB / 438.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3697, allocations: 288 / 438.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.3698, allocations: 36.23 kB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.3702, allocations: 26.86 kB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002452/0.3726, allocations: 1.744 MB / 440.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.168e-05/0.3727, allocations: 88.14 kB / 440.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.855e-05/0.3728, allocations: 8.422 kB / 440.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.233e-05/0.3728, allocations: 27.44 kB / 440.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3728, allocations: 4 kB / 440.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03018/0.403, allocations: 2.617 MB / 443.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.37, allocations: 6.328 kB / 443.4 MB, free: 10.65 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: 13.987978941993788]