Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.001195/0.001195, allocations: 121 kB / 18.49 MB, free: 4.586 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.001433/0.001433, allocations: 213.5 kB / 21.45 MB, free: 1.641 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.419/1.419, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 51.92 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.1004, allocations: 53.32 MB / 427 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.002825/0.1033, allocations: 1.574 MB / 428.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009748/0.1042, allocations: 0.5376 MB / 429.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.256e-05/0.1043, allocations: 4 kB / 429.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.577e-05/0.1044, allocations: 3.938 kB / 429.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.1045, allocations: 7.938 kB / 429.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002941/0.1048, allocations: 59.31 kB / 429.2 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.1049, allocations: 43.78 kB / 429.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.961e-05/0.105, allocations: 8 kB / 429.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.1051, allocations: 27.86 kB / 429.3 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.653e-05/0.1051, allocations: 23.92 kB / 429.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.24e-05/0.1052, allocations: 0 / 429.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.513e-05/0.1052, allocations: 4 kB / 429.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.264e-05/0.1052, allocations: 19.91 kB / 429.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.703e-05/0.1053, allocations: 27.81 kB / 429.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.1054, allocations: 47.75 kB / 429.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1054, allocations: 3.984 kB / 429.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1054, allocations: 4 kB / 429.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.1054, allocations: 0 / 429.4 MB, free: 2.449 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004785/0.1059, allocations: 371.1 kB / 429.8 MB, free: 2.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.1059, allocations: 12.03 kB / 429.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.141e-05/0.1059, allocations: 192 / 429.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.53e-05/0.106, allocations: 34.75 kB / 429.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001552/0.1061, allocations: 16.88 kB / 429.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.1064, allocations: 200.1 kB / 430 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.966e-06/0.1064, allocations: 384 / 430 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.1064, allocations: 4.375 kB / 430 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002332/0.1066, allocations: 101 kB / 430.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.1067, allocations: 0 / 430.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-06/0.1067, allocations: 0 / 430.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1067, allocations: 0 / 430.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.961e-05/0.1067, allocations: 19.98 kB / 430.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003136/0.1071, allocations: 273.6 kB / 430.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.015e-05/0.1072, allocations: 41.14 kB / 430.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.419e-05/0.1072, allocations: 21.78 kB / 430.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.1072, allocations: 0 / 430.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.1073, allocations: 38.5 kB / 430.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.1073, allocations: 0 / 430.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002409/0.1075, allocations: 69.62 kB / 430.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.1076, allocations: 81.05 kB / 430.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.1077, allocations: 143.7 kB / 430.8 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.1077, allocations: 29.95 kB / 430.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/0.1078, allocations: 84.14 kB / 430.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.265e-05/0.1078, allocations: 0 / 430.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.866e-05/0.1078, allocations: 21.67 kB / 430.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1079, allocations: 322.8 kB / 431.3 MB, free: 352 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.256e-05/0.108, allocations: 8 kB / 431.3 MB, free: 344 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.382e-05/0.108, allocations: 17.7 kB / 431.3 MB, free: 320 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.383e-05/0.1081, allocations: 37.7 kB / 431.3 MB, free: 276 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1081, allocations: 0 / 431.3 MB, free: 276 kB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001156/0.1082, allocations: 53.62 kB / 431.4 MB, free: 216 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1083, allocations: 8 kB / 431.4 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.1083, allocations: 0 / 431.4 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.1083, allocations: 0 / 431.4 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.641e-05/0.1083, allocations: 12.05 kB / 431.4 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.1083, allocations: 0 / 431.4 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.814e-05/0.1084, allocations: 11.92 kB / 431.4 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1084, allocations: 0 / 431.4 MB, free: 184 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 9.396e-05/0.1085, allocations: 125.7 kB / 431.5 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.865e-05/0.1085, allocations: 37.66 kB / 431.6 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.906e-05/0.1086, allocations: 11.88 kB / 431.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1086, allocations: 0 / 431.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1086, allocations: 4.031 kB / 431.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.1086, allocations: 3.984 kB / 431.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001828/0.1088, allocations: 173.6 kB / 431.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1088, allocations: 3.984 kB / 431.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.281e-05/0.1088, allocations: 4 kB / 431.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.1088, allocations: 0 / 431.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.1088, allocations: 0 / 431.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1088, allocations: 4 kB / 431.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1088, allocations: 0 / 431.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001805/0.109, allocations: 164.2 kB / 431.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.993e-05/0.1091, allocations: 93.05 kB / 432 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.1091, allocations: 8 kB / 432 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.265e-05/0.1092, allocations: 3.938 kB / 432 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.1092, allocations: 4 kB / 432 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.1092, allocations: 0 / 432 MB, free: 15.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001042/0.1093, allocations: 112.3 kB / 432.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1093, allocations: 0 / 432.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002156/0.1095, allocations: 4 kB / 432.1 MB, free: 15.33 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 (2): * Single equations (assignments): 2 * 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.0004913/0.11, allocations: 0.6976 MB / 432.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00014/0.1102, allocations: 23.98 kB / 432.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1102, allocations: 0 / 432.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.232e-05/0.1102, allocations: 15.92 kB / 432.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.1105, allocations: 11.97 kB / 432.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.1119, allocations: 1.319 MB / 434.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.1123, allocations: 0.6885 MB / 434.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.079e-05/0.1123, allocations: 7.906 kB / 434.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.04e-05/0.1123, allocations: 11.44 kB / 434.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1123, allocations: 0 / 434.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.1297, allocations: 1.548 MB / 436.5 MB, free: 11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.764/7.893, allocations: 8.047 kB / 436.5 MB, free: 11 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 10.4782346879947]