Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00173/0.00173, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.62 kB / 306.4 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1014, allocations: 50.53 MB / 356.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.002781/0.1043, allocations: 1.57 MB / 358.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008014/0.1051, allocations: 474.8 kB / 358.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.845e-05/0.1052, allocations: 0 / 358.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.368e-05/0.1052, allocations: 0 / 358.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.235e-05/0.1053, allocations: 3.938 kB / 358.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002593/0.1056, allocations: 27.91 kB / 359 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.611e-05/0.1056, allocations: 35.92 kB / 359 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.23e-05/0.1057, allocations: 12 kB / 359 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.1059, allocations: 35.84 kB / 359 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.89e-05/0.1059, allocations: 15.86 kB / 359.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.1059, allocations: 0 / 359.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.108e-05/0.106, allocations: 8 kB / 359.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.362e-05/0.106, allocations: 4 kB / 359.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.364e-05/0.106, allocations: 19.86 kB / 359.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.684e-05/0.1061, allocations: 35.89 kB / 359.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1062, allocations: 0 / 359.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1062, allocations: 0 / 359.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.1062, allocations: 4 kB / 359.1 MB, free: 12.14 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004316/0.1066, allocations: 349.9 kB / 359.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1067, allocations: 12.03 kB / 359.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.834e-05/0.1067, allocations: 38.73 kB / 359.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.1068, allocations: 12.84 kB / 359.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.107, allocations: 188.2 kB / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-06/0.107, allocations: 4.375 kB / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.1071, allocations: 384 / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.1074, allocations: 123.3 kB / 359.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1074, allocations: 0 / 359.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.1074, allocations: 3.938 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.1074, allocations: 0 / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.983e-05/0.1075, allocations: 27.97 kB / 359.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001337/0.1076, allocations: 157.6 kB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.1078, allocations: 62.48 kB / 360.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.787e-05/0.1079, allocations: 24.92 kB / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.1079, allocations: 0 / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.1079, allocations: 42.5 kB / 360.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.1079, allocations: 0 / 360.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.000222/0.1081, allocations: 77.64 kB / 360.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.1082, allocations: 59.34 kB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.042e-05/0.1083, allocations: 109.8 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.1083, allocations: 29.7 kB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.1083, allocations: 84.14 kB / 360.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.462e-06/0.1084, allocations: 0 / 360.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.018e-05/0.1084, allocations: 17.72 kB / 360.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.787e-05/0.1085, allocations: 318.8 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.238e-05/0.1085, allocations: 4 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.567e-05/0.1085, allocations: 23.44 kB / 360.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.734e-05/0.1086, allocations: 39.38 kB / 360.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.1086, allocations: 3.984 kB / 360.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.035e-05/0.1087, allocations: 57.48 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.1087, allocations: 4 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.1087, allocations: 0 / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.1087, allocations: 8.125 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.777e-05/0.1088, allocations: 11.92 kB / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.1088, allocations: 7.984 kB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.068e-05/0.1088, allocations: 4 kB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-06/0.1088, allocations: 0 / 361 MB, free: 10.02 MB / 302.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 6.972e-05/0.1089, allocations: 113.8 kB / 361.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.109, allocations: 69.52 kB / 361.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.839e-05/0.1091, allocations: 7.906 kB / 361.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1091, allocations: 8 kB / 361.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1091, allocations: 3.938 kB / 361.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1091, allocations: 0 / 361.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.574e-05/0.1092, allocations: 162 kB / 361.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1092, allocations: 0 / 361.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.787e-05/0.1093, allocations: 11.94 kB / 361.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1093, allocations: 0 / 361.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.1093, allocations: 7.922 kB / 361.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1093, allocations: 0 / 361.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1093, allocations: 0 / 361.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001436/0.1095, allocations: 89.11 kB / 361.4 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.1095, allocations: 96.89 kB / 361.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.1095, allocations: 4 kB / 361.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.083e-05/0.1096, allocations: 0 / 361.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.971e-06/0.1096, allocations: 0 / 361.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.1096, allocations: 3.984 kB / 361.6 MB, free: 9.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.412e-05/0.1097, allocations: 91.22 kB / 361.6 MB, free: 9.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1097, allocations: 0 / 361.6 MB, free: 9.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001908/0.1099, allocations: 8 kB / 361.6 MB, free: 9.246 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0003601/0.1102, allocations: 0.6241 MB / 362.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001013/0.1103, allocations: 28.34 kB / 362.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.1103, allocations: 4.25 kB / 362.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.42e-07/0.1103, allocations: 0 / 362.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.1106, allocations: 16 kB / 362.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008881/0.1115, allocations: 1.2 MB / 363.5 MB, free: 7.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.1117, allocations: 0.6848 MB / 364.2 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.214e-05/0.1117, allocations: 0 / 364.2 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.472e-05/0.1118, allocations: 15.44 kB / 364.2 MB, free: 6.52 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1118, allocations: 0 / 364.2 MB, free: 6.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.222/1.334, allocations: 1.178 MB / 365.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003417/1.334, allocations: 216.9 kB / 365.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.934/3.269, allocations: 4 kB / 365.6 MB, free: 5.199 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches