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.001464/0.001464, allocations: 108.6 kB / 21.22 MB, free: 0.7344 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.0013/0.0013, allocations: 183.5 kB / 24.5 MB, free: 4.09 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.368/1.368, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.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.001534/0.001534, allocations: 43.92 kB / 371.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.258, allocations: 52.19 MB / 423.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.002757/0.2608, allocations: 1.512 MB / 424.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007444/0.2615, allocations: 439 kB / 425.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.221e-05/0.2616, allocations: 0 / 425.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.531e-05/0.2616, allocations: 3.938 kB / 425.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.128e-05/0.2617, allocations: 11.91 kB / 425.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.262, allocations: 30.92 kB / 425.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.2621, allocations: 43.78 kB / 425.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.02e-05/0.2622, allocations: 8 kB / 425.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.003e-05/0.2622, allocations: 23.92 kB / 425.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.775e-05/0.2623, allocations: 15.92 kB / 425.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.2623, allocations: 4 kB / 425.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.566e-06/0.2623, allocations: 0 / 425.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.469e-05/0.2623, allocations: 4 kB / 425.5 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.538e-05/0.2624, allocations: 23.86 kB / 425.5 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.2625, allocations: 40.83 kB / 425.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.2625, allocations: 0 / 425.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2625, allocations: 0 / 425.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.2625, allocations: 0 / 425.6 MB, free: 12.58 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.0004417/0.2629, allocations: 278.2 kB / 425.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.263, allocations: 12.03 kB / 425.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.361e-05/0.263, allocations: 192 / 425.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.239e-05/0.263, allocations: 34.75 kB / 425.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.2631, allocations: 12.89 kB / 425.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.2633, allocations: 122.4 kB / 426 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.2633, allocations: 4.359 kB / 426 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.2633, allocations: 8.375 kB / 426 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003211/0.2636, allocations: 127.1 kB / 426.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.2636, allocations: 0 / 426.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-06/0.2637, allocations: 0 / 426.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.2637, allocations: 0 / 426.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.999e-05/0.2637, allocations: 19.98 kB / 426.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000139/0.2639, allocations: 136.7 kB / 426.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001616/0.264, allocations: 54.48 kB / 426.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.612e-05/0.2641, allocations: 28.92 kB / 426.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.2641, allocations: 3.938 kB / 426.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.2642, allocations: 30.56 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.2642, allocations: 4 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002508/0.2644, allocations: 73.62 kB / 426.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.487e-05/0.2645, allocations: 59.41 kB / 426.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.2646, allocations: 113.8 kB / 426.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.2646, allocations: 25.7 kB / 426.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.88e-05/0.2647, allocations: 88.14 kB / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.003e-06/0.2647, allocations: 0 / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/0.2647, allocations: 17.72 kB / 426.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2648, allocations: 318.8 kB / 427.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.355e-05/0.2649, allocations: 4 kB / 427.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.27e-05/0.2649, allocations: 27.44 kB / 427.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.735e-05/0.2649, allocations: 35.38 kB / 427.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2649, allocations: 3.938 kB / 427.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.849e-05/0.265, allocations: 61.56 kB / 427.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.265, allocations: 4 kB / 427.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.265, allocations: 0 / 427.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.2651, allocations: 4 kB / 427.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.022e-05/0.2651, allocations: 4 kB / 427.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.2651, allocations: 7.922 kB / 427.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.502e-05/0.2652, allocations: 8.125 kB / 427.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.73e-06/0.2652, allocations: 0 / 427.3 MB, free: 10.66 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 9.914e-05/0.2653, allocations: 113.8 kB / 427.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.2654, allocations: 65.95 kB / 427.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.598e-05/0.2654, allocations: 8.312 kB / 427.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2654, allocations: 0 / 427.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.2654, allocations: 0 / 427.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.2655, allocations: 11.92 kB / 427.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.2656, allocations: 136.7 kB / 427.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2656, allocations: 3.938 kB / 427.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.66e-05/0.2656, allocations: 8 kB / 427.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2656, allocations: 3.938 kB / 427.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.2656, allocations: 0 / 427.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2657, allocations: 0 / 427.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2657, allocations: 0 / 427.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.2658, allocations: 93.06 kB / 427.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.903e-05/0.2658, allocations: 11.92 kB / 427.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.2659, allocations: 8 kB / 427.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.956e-05/0.2659, allocations: 0 / 427.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-06/0.2659, allocations: 0 / 427.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.2659, allocations: 0 / 427.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.997e-05/0.266, allocations: 91.27 kB / 427.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.266, allocations: 0 / 427.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001869/0.2661, allocations: 4 kB / 427.8 MB, free: 10.03 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.0005084/0.2667, allocations: 0.6319 MB / 428.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000133/0.2668, allocations: 23.92 kB / 428.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.2668, allocations: 0 / 428.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.364e-06/0.2668, allocations: 4 kB / 428.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.267, allocations: 32.12 kB / 428.5 MB, free: 9.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.2682, allocations: 1.194 MB / 429.7 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.2685, allocations: 0.6883 MB / 430.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.411e-05/0.2685, allocations: 4 kB / 430.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.344e-05/0.2685, allocations: 11.44 kB / 430.4 MB, free: 7.293 MB / 334.1 MB Notification: Performance of SimCode: time 8.41e-07/0.2686, allocations: 0 / 430.4 MB, free: 7.293 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02139/0.2899, allocations: 1.468 MB / 431.9 MB, free: 5.973 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.83, allocations: 4.062 kB / 431.9 MB, free: 5.969 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.1951278320048]