Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.001566/0.001566, allocations: 113 kB / 18.49 MB, free: 4.539 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.001753/0.001753, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.459/1.459, allocations: 230.6 MB / 254.8 MB, free: 15.06 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.TimeBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 51.91 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.111, allocations: 53.32 MB / 427 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.002894/0.1139, allocations: 1.52 MB / 428.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009006/0.1148, allocations: 482.7 kB / 429 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.471e-05/0.1149, allocations: 0 / 429 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.016e-05/0.1149, allocations: 3.938 kB / 429 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.177e-05/0.115, allocations: 11.94 kB / 429 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.1153, allocations: 31.89 kB / 429.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.1154, allocations: 43.8 kB / 429.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.1155, allocations: 12 kB / 429.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.1157, allocations: 19.92 kB / 429.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.545e-05/0.1157, allocations: 19.91 kB / 429.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.1157, allocations: 4 kB / 429.2 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.033e-05/0.1158, allocations: 4 kB / 429.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.695e-05/0.1158, allocations: 11.94 kB / 429.2 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.953e-05/0.1158, allocations: 19.86 kB / 429.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.116, allocations: 43.77 kB / 429.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.116, allocations: 4 kB / 429.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.116, allocations: 0 / 429.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.116, allocations: 0 / 429.2 MB, free: 2.535 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005269/0.1165, allocations: 351.3 kB / 429.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.1165, allocations: 8.031 kB / 429.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.304e-05/0.1166, allocations: 192 / 429.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.111e-05/0.1166, allocations: 46.72 kB / 429.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001452/0.1167, allocations: 12.94 kB / 429.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000253/0.117, allocations: 172.3 kB / 429.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.117, allocations: 12.36 kB / 429.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.117, allocations: 384 / 429.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003403/0.1174, allocations: 115.2 kB / 429.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.1174, allocations: 0 / 429.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.1174, allocations: 4 kB / 429.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1174, allocations: 0 / 429.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.966e-05/0.1175, allocations: 27.91 kB / 430 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001748/0.1177, allocations: 157.6 kB / 430.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.1178, allocations: 62.52 kB / 430.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.292e-05/0.1179, allocations: 24.89 kB / 430.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.1179, allocations: 3.938 kB / 430.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.1179, allocations: 34.56 kB / 430.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.1179, allocations: 0 / 430.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002644/0.1182, allocations: 73.66 kB / 430.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.1183, allocations: 55.41 kB / 430.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.1184, allocations: 117.8 kB / 430.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.1184, allocations: 25.7 kB / 430.5 MB, free: 1.047 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.721e-05/0.1184, allocations: 84.14 kB / 430.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.983e-06/0.1184, allocations: 0 / 430.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.1185, allocations: 17.72 kB / 430.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.1186, allocations: 314.8 kB / 430.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.244e-05/0.1187, allocations: 8 kB / 430.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.617e-05/0.1187, allocations: 31.44 kB / 431 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.976e-05/0.1187, allocations: 43.3 kB / 431 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1187, allocations: 0 / 431 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.537e-05/0.1188, allocations: 61.59 kB / 431.1 MB, free: 460 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.1188, allocations: 4 kB / 431.1 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.1188, allocations: 4 kB / 431.1 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.1189, allocations: 3.984 kB / 431.1 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.044e-05/0.1189, allocations: 11.94 kB / 431.1 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.1189, allocations: 4 kB / 431.1 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.072e-05/0.119, allocations: 3.938 kB / 431.1 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.119, allocations: 4 kB / 431.1 MB, free: 424 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 9.159e-05/0.1191, allocations: 109.8 kB / 431.2 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.1192, allocations: 69.95 kB / 431.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.366e-05/0.1192, allocations: 3.953 kB / 431.3 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.1192, allocations: 7.984 kB / 431.3 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1192, allocations: 0 / 431.3 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1192, allocations: 384 / 431.3 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001372/0.1194, allocations: 165.6 kB / 431.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1194, allocations: 3.938 kB / 431.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.036e-05/0.1194, allocations: 11.94 kB / 431.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.1194, allocations: 7.922 kB / 431.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.1194, allocations: 0 / 431.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1194, allocations: 4 kB / 431.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1194, allocations: 0 / 431.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001604/0.1196, allocations: 89.12 kB / 431.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.183e-05/0.1197, allocations: 85 kB / 431.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.477e-05/0.1197, allocations: 8 kB / 431.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.289e-05/0.1197, allocations: 3.984 kB / 431.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.675e-06/0.1197, allocations: 0 / 431.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.1197, allocations: 8 kB / 431.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.038e-05/0.1198, allocations: 83.28 kB / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1198, allocations: 0 / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001818/0.12, allocations: 4 kB / 431.7 MB, free: 15.65 MB / 366.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.0004713/0.1204, allocations: 0.6319 MB / 432.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001283/0.1206, allocations: 27.92 kB / 432.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1206, allocations: 0 / 432.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.1206, allocations: 0 / 432.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.1208, allocations: 26.11 kB / 432.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.1219, allocations: 1.194 MB / 433.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.1222, allocations: 0.6846 MB / 434.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.311e-05/0.1222, allocations: 0 / 434.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.267e-05/0.1223, allocations: 15.42 kB / 434.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1223, allocations: 0 / 434.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01705/0.1393, allocations: 1.383 MB / 435.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.671/7.81, allocations: 7.984 kB / 435.7 MB, free: 11.67 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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: 10.46808736701496]