Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.001907/0.001907, allocations: 128.4 kB / 17.8 MB, free: 5.262 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.002432/0.002432, allocations: 214.5 kB / 20.75 MB, free: 2.309 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.414/1.414, allocations: 230.4 MB / 254 MB, free: 15.02 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.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 59.91 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09862/0.1006, allocations: 53.37 MB / 426.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002675/0.1032, allocations: 1.568 MB / 427.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000323/0.1036, allocations: 143.5 kB / 428.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.951e-05/0.1036, allocations: 0 / 428.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.44e-05/0.1036, allocations: 3.938 kB / 428.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.063e-05/0.1037, allocations: 11.94 kB / 428.1 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001801/0.1039, allocations: 39.83 kB / 428.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.783e-05/0.104, allocations: 35.86 kB / 428.2 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.419e-05/0.1041, allocations: 15.97 kB / 428.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.5e-05/0.1041, allocations: 11.94 kB / 428.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.861e-05/0.1041, allocations: 19.86 kB / 428.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.1041, allocations: 4 kB / 428.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.683e-06/0.1042, allocations: 0 / 428.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.746e-05/0.1042, allocations: 11.94 kB / 428.2 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.284e-05/0.1042, allocations: 23.86 kB / 428.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.417e-05/0.1043, allocations: 51.69 kB / 428.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1043, allocations: 0 / 428.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1043, allocations: 0 / 428.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.1043, allocations: 0 / 428.3 MB, free: 2.68 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003833/0.1047, allocations: 375.2 kB / 428.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.1047, allocations: 8.031 kB / 428.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.873e-05/0.1048, allocations: 30.75 kB / 428.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.1e-05/0.1048, allocations: 8.891 kB / 428.7 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.105, allocations: 204.1 kB / 428.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.913e-06/0.105, allocations: 384 / 428.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.105, allocations: 8.375 kB / 428.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.1052, allocations: 113.6 kB / 429 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.1052, allocations: 7.938 kB / 429 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.34e-06/0.1052, allocations: 0 / 429 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.855e-06/0.1052, allocations: 0 / 429 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.19e-05/0.1053, allocations: 23.91 kB / 429.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002565/0.1056, allocations: 257.8 kB / 429.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.1058, allocations: 146.2 kB / 429.5 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.14e-05/0.1058, allocations: 25.77 kB / 429.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.1058, allocations: 4 kB / 429.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.1059, allocations: 30.56 kB / 429.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.1059, allocations: 3.938 kB / 429.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002181/0.1061, allocations: 81.56 kB / 429.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.1061, allocations: 81.09 kB / 429.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.1063, allocations: 135.8 kB / 429.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.1063, allocations: 25.7 kB / 429.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.567e-05/0.1063, allocations: 84.14 kB / 429.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.1063, allocations: 3.953 kB / 429.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.573e-05/0.1064, allocations: 21.66 kB / 429.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1065, allocations: 327 kB / 430.3 MB, free: 444 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.629e-05/0.1065, allocations: 4 kB / 430.3 MB, free: 440 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.109e-05/0.1066, allocations: 39.36 kB / 430.3 MB, free: 388 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.374e-05/0.1067, allocations: 47.36 kB / 430.3 MB, free: 328 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1067, allocations: 3.938 kB / 430.3 MB, free: 324 kB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001281/0.1068, allocations: 65.61 kB / 430.4 MB, free: 252 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.1068, allocations: 4 kB / 430.4 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-06/0.1068, allocations: 0 / 430.4 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.1068, allocations: 4 kB / 430.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.832e-05/0.1069, allocations: 12.12 kB / 430.4 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1069, allocations: 4 kB / 430.4 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.202e-05/0.1069, allocations: 7.938 kB / 430.4 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.1069, allocations: 4 kB / 430.4 MB, free: 216 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 7.975e-05/0.107, allocations: 121.7 kB / 430.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.206e-05/0.1071, allocations: 45.69 kB / 430.6 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.999e-05/0.1071, allocations: 12.25 kB / 430.6 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1071, allocations: 0 / 430.6 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.1071, allocations: 0 / 430.6 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1071, allocations: 4 kB / 430.6 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.1073, allocations: 177.5 kB / 430.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.1073, allocations: 0 / 430.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.58e-05/0.1073, allocations: 11.98 kB / 430.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1073, allocations: 0 / 430.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-06/0.1073, allocations: 0 / 430.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1073, allocations: 0 / 430.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.1074, allocations: 4 kB / 430.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001749/0.1075, allocations: 172.5 kB / 431 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.256e-05/0.1076, allocations: 93.03 kB / 431.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.638e-06/0.1076, allocations: 3.984 kB / 431.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.598e-05/0.1077, allocations: 7.984 kB / 431.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.958e-05/0.1077, allocations: 0 / 431.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.501e-06/0.1077, allocations: 4 kB / 431.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.171e-05/0.1078, allocations: 104.5 kB / 431.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1078, allocations: 0 / 431.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002088/0.108, allocations: 12 kB / 431.2 MB, free: 15.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (4): * Single equations (assignments): 4 * 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.0004628/0.1084, allocations: 0.6976 MB / 431.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001135/0.1085, allocations: 32.05 kB / 431.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.1085, allocations: 4 kB / 431.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.13e-05/0.1086, allocations: 7.984 kB / 431.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.1088, allocations: 19.95 kB / 432 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.11, allocations: 1.331 MB / 433.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.1103, allocations: 0.6885 MB / 434 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.752e-05/0.1103, allocations: 0 / 434 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.484e-05/0.1104, allocations: 15.44 kB / 434 MB, free: 12.39 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1104, allocations: 4 kB / 434 MB, free: 12.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02068/0.1311, allocations: 1.479 MB / 435.5 MB, free: 11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.389/7.52, allocations: 18.52 kB / 435.5 MB, free: 10.98 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.y,step.y,step.height [Calling sys.exit(0), Time elapsed: 10.276802869979292]