Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 108.6 kB / 18.49 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 197 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 225.6 MB / 249.8 MB, free: 3.559 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 59.89 kB / 366.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09357/0.09515, allocations: 52.14 MB / 418.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.002968/0.09812, allocations: 1.495 MB / 420 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000774/0.09889, allocations: 426.9 kB / 420.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.69e-05/0.09896, allocations: 4 kB / 420.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.907e-05/0.09899, allocations: 7.922 kB / 420.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.204e-05/0.09906, allocations: 15.86 kB / 420.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.09931, allocations: 27.92 kB / 420.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.09942, allocations: 39.91 kB / 420.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.674e-05/0.09952, allocations: 11.98 kB / 420.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.287e-05/0.09961, allocations: 19.88 kB / 420.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.909e-05/0.09967, allocations: 19.86 kB / 420.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.09969, allocations: 0 / 420.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.837e-06/0.0997, allocations: 4 kB / 420.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.475e-05/0.09971, allocations: 0 / 420.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.156e-05/0.09975, allocations: 27.84 kB / 420.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.967e-05/0.09985, allocations: 31.84 kB / 420.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.09986, allocations: 3.984 kB / 420.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.09986, allocations: 4 kB / 420.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.09987, allocations: 0 / 420.6 MB, free: 10.44 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.000469/0.1003, allocations: 347.4 kB / 421 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1004, allocations: 11.97 kB / 421 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.367e-05/0.1004, allocations: 4.188 kB / 421 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.407e-05/0.1004, allocations: 34.73 kB / 421 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.629e-05/0.1004, allocations: 4.891 kB / 421 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002372/0.1007, allocations: 192.2 kB / 421.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.378e-06/0.1007, allocations: 384 / 421.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.1007, allocations: 4.375 kB / 421.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003282/0.101, allocations: 115.2 kB / 421.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.101, allocations: 0 / 421.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-06/0.1011, allocations: 3.938 kB / 421.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.1011, allocations: 8 kB / 421.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.887e-05/0.1011, allocations: 23.98 kB / 421.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.1013, allocations: 161.7 kB / 421.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.1014, allocations: 58.47 kB / 421.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.337e-05/0.1015, allocations: 24.92 kB / 421.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.1015, allocations: 7.938 kB / 421.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.1016, allocations: 34.56 kB / 421.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.1016, allocations: 0 / 421.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002356/0.1018, allocations: 73.62 kB / 421.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.1018, allocations: 59.34 kB / 421.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.492e-05/0.1019, allocations: 109.8 kB / 421.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.1019, allocations: 29.7 kB / 421.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.035e-05/0.102, allocations: 84.14 kB / 422 MB, free: 8.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.448e-06/0.102, allocations: 7.984 kB / 422 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.851e-05/0.102, allocations: 13.72 kB / 422 MB, free: 8.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.1022, allocations: 314.8 kB / 422.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.262e-05/0.1022, allocations: 4 kB / 422.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.105e-05/0.1022, allocations: 31.42 kB / 422.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.549e-05/0.1023, allocations: 35.75 kB / 422.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1023, allocations: 0 / 422.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.449e-05/0.1024, allocations: 61.56 kB / 422.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.1024, allocations: 4 kB / 422.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.1024, allocations: 8.062 kB / 422.5 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1024, allocations: 4 kB / 422.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.712e-05/0.1025, allocations: 7.938 kB / 422.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.1025, allocations: 4 kB / 422.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/0.1025, allocations: 0 / 422.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-06/0.1025, allocations: 0 / 422.5 MB, free: 8.328 MB / 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 8.123e-05/0.1026, allocations: 113.8 kB / 422.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.1027, allocations: 65.56 kB / 422.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.941e-05/0.1027, allocations: 7.906 kB / 422.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.237e-06/0.1027, allocations: 8 kB / 422.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1027, allocations: 3.938 kB / 422.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1027, allocations: 3.984 kB / 422.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.1028, allocations: 157.6 kB / 422.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.1029, allocations: 3.938 kB / 422.8 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.94e-05/0.1029, allocations: 11.98 kB / 422.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1029, allocations: 0 / 422.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.1029, allocations: 0 / 422.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1029, allocations: 0 / 422.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1029, allocations: 0 / 422.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000156/0.1031, allocations: 97.06 kB / 422.9 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.988e-05/0.1031, allocations: 88.97 kB / 423 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.1032, allocations: 4 kB / 423 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.293e-05/0.1032, allocations: 384 / 423 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.324e-06/0.1032, allocations: 0 / 423 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.1032, allocations: 4 kB / 423 MB, free: 7.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.752e-05/0.1033, allocations: 95.2 kB / 423.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1033, allocations: 4 kB / 423.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001906/0.1034, allocations: 4 kB / 423.1 MB, free: 7.559 MB / 350.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.0004537/0.1039, allocations: 0.6318 MB / 423.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001224/0.104, allocations: 36.11 kB / 423.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.104, allocations: 0 / 423.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.104, allocations: 288 / 423.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.1042, allocations: 25.86 kB / 423.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.1053, allocations: 1.198 MB / 425 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.1056, allocations: 0.6883 MB / 425.7 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.64e-05/0.1056, allocations: 4 kB / 425.7 MB, free: 4.824 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.1057, allocations: 15.38 kB / 425.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.1057, allocations: 0 / 425.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01749/0.1231, allocations: 1.374 MB / 427.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.709/7.833, allocations: 12.38 kB / 427.1 MB, free: 3.566 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.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.240042832971085]