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.001329/0.001329, allocations: 111.8 kB / 20.43 MB, free: 1.309 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.001558/0.001558, allocations: 214.3 kB / 23.75 MB, free: 4.535 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.503/1.503, allocations: 230.6 MB / 257.5 MB, free: 7.98 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 51.91 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2678, allocations: 53.35 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.002785/0.2705, allocations: 1.53 MB / 432.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000881/0.2714, allocations: 478.7 kB / 433.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.554e-05/0.2715, allocations: 4 kB / 433.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.263e-05/0.2715, allocations: 3.938 kB / 433.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.876e-05/0.2716, allocations: 11.86 kB / 433.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.2719, allocations: 35.89 kB / 433.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.272, allocations: 35.92 kB / 433.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.2721, allocations: 15.94 kB / 433.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.2722, allocations: 23.86 kB / 433.3 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.285e-05/0.2723, allocations: 23.86 kB / 433.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.2723, allocations: 0 / 433.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.163e-05/0.2723, allocations: 11.98 kB / 433.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.721e-05/0.2724, allocations: 4 kB / 433.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.837e-05/0.2724, allocations: 19.86 kB / 433.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.2725, allocations: 36.27 kB / 433.4 MB, free: 4.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2725, allocations: 7.984 kB / 433.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2725, allocations: 0 / 433.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2725, allocations: 0 / 433.4 MB, free: 4.617 MB / 334.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.0004609/0.273, allocations: 274.2 kB / 433.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.273, allocations: 8.031 kB / 433.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.331e-05/0.2731, allocations: 42.73 kB / 433.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.2732, allocations: 8.938 kB / 433.7 MB, free: 4.254 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.2734, allocations: 126.4 kB / 433.8 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.964e-06/0.2735, allocations: 8.312 kB / 433.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.2735, allocations: 384 / 433.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.2738, allocations: 119.4 kB / 433.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.2738, allocations: 0 / 433.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.2738, allocations: 0 / 433.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.2738, allocations: 0 / 433.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.455e-05/0.2739, allocations: 23.98 kB / 434 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.274, allocations: 132.7 kB / 434.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.2742, allocations: 58.48 kB / 434.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.23e-05/0.2743, allocations: 24.92 kB / 434.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.2743, allocations: 0 / 434.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.2743, allocations: 38.5 kB / 434.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.61e-07/0.2743, allocations: 0 / 434.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002455/0.2746, allocations: 81.56 kB / 434.3 MB, free: 3.547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.2746, allocations: 55.39 kB / 434.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.536e-05/0.2747, allocations: 113.8 kB / 434.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.2747, allocations: 29.7 kB / 434.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.908e-05/0.2748, allocations: 84.14 kB / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.761e-06/0.2748, allocations: 4 kB / 434.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.188e-05/0.2748, allocations: 17.72 kB / 434.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.275, allocations: 318.8 kB / 434.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.032e-05/0.275, allocations: 0 / 434.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.111e-05/0.275, allocations: 27.44 kB / 434.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.87e-05/0.275, allocations: 39.38 kB / 435 MB, free: 2.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.275, allocations: 0 / 435 MB, free: 2.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.739e-05/0.2751, allocations: 65.45 kB / 435 MB, free: 2.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.2751, allocations: 8 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.2751, allocations: 0 / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.2752, allocations: 128 / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.863e-05/0.2752, allocations: 15.98 kB / 435.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2752, allocations: 3.984 kB / 435.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.127e-05/0.2752, allocations: 4 kB / 435.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.456e-06/0.2752, allocations: 4 kB / 435.1 MB, free: 2.695 MB / 334.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.266e-05/0.2753, allocations: 113.8 kB / 435.2 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.2754, allocations: 69.55 kB / 435.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.921e-05/0.2755, allocations: 11.94 kB / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.2755, allocations: 0 / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.2755, allocations: 8 kB / 435.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2755, allocations: 336 / 435.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.2756, allocations: 136.7 kB / 435.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.2756, allocations: 0 / 435.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.904e-05/0.2757, allocations: 7.938 kB / 435.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2757, allocations: 4 kB / 435.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.2757, allocations: 3.984 kB / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2757, allocations: 0 / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2757, allocations: 0 / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001536/0.2758, allocations: 89.11 kB / 435.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.438e-05/0.2758, allocations: 15.88 kB / 435.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.2759, allocations: 0 / 435.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.351e-05/0.2759, allocations: 4 kB / 435.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.014e-06/0.2759, allocations: 0 / 435.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-06/0.2759, allocations: 3.938 kB / 435.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.687e-05/0.276, allocations: 95.58 kB / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.276, allocations: 0 / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001872/0.2761, allocations: 8 kB / 435.6 MB, free: 2.051 MB / 334.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.000444/0.2766, allocations: 0.6163 MB / 436.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001116/0.2767, allocations: 27.92 kB / 436.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2767, allocations: 256 / 436.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.21e-07/0.2767, allocations: 4 kB / 436.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.2769, allocations: 19.98 kB / 436.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.278, allocations: 1.198 MB / 437.5 MB, free: 60 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.2784, allocations: 0.6807 MB / 438.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.229e-05/0.2784, allocations: 0 / 438.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.82e-05/0.2784, allocations: 15.44 kB / 438.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2784, allocations: 0 / 438.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02678/0.3052, allocations: 1.452 MB / 439.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.18, allocations: 11.52 kB / 439.7 MB, free: 14.02 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.700434892904013]