Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.001239/0.001239, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001271/0.001271, allocations: 192.8 kB / 24.5 MB, free: 4.02 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.372/1.372, allocations: 225.7 MB / 253.3 MB, free: 13.05 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.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 48.02 kB / 371.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2724, allocations: 52.18 MB / 423.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.002976/0.2754, allocations: 1.583 MB / 425 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008631/0.2762, allocations: 474.8 kB / 425.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.317e-05/0.2763, allocations: 3.938 kB / 425.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.872e-05/0.2763, allocations: 3.938 kB / 425.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.2765, allocations: 15.92 kB / 425.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.2767, allocations: 39.83 kB / 425.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.2768, allocations: 35.86 kB / 425.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.827e-05/0.2769, allocations: 12 kB / 425.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.049e-05/0.277, allocations: 23.91 kB / 425.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.942e-05/0.2771, allocations: 19.86 kB / 425.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.2771, allocations: 4 kB / 425.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.928e-06/0.2771, allocations: 0 / 425.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.831e-05/0.2771, allocations: 11.94 kB / 425.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.062e-05/0.2772, allocations: 27.8 kB / 425.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.2773, allocations: 48.59 kB / 425.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.2773, allocations: 0 / 425.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2773, allocations: 0 / 425.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2773, allocations: 0 / 425.7 MB, free: 12.46 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004573/0.2778, allocations: 298 kB / 426 MB, free: 12.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.2778, allocations: 8.031 kB / 426 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.624e-05/0.2778, allocations: 4.188 kB / 426 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.686e-05/0.2779, allocations: 34.75 kB / 426 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.2779, allocations: 8.891 kB / 426.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.2782, allocations: 142.3 kB / 426.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.2782, allocations: 4.375 kB / 426.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.2782, allocations: 4.375 kB / 426.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/0.2784, allocations: 89.05 kB / 426.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.2784, allocations: 7.938 kB / 426.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.2784, allocations: 0 / 426.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2784, allocations: 0 / 426.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.035e-05/0.2785, allocations: 19.92 kB / 426.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003065/0.2788, allocations: 232.8 kB / 426.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.982e-05/0.2789, allocations: 49.16 kB / 426.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.711e-05/0.279, allocations: 17.77 kB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.279, allocations: 15.92 kB / 426.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.279, allocations: 34.56 kB / 426.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.279, allocations: 0 / 426.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002364/0.2793, allocations: 69.56 kB / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.2793, allocations: 81.3 kB / 426.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.2794, allocations: 141.1 kB / 426.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.2795, allocations: 25.7 kB / 427 MB, free: 11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.364e-05/0.2795, allocations: 88.12 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.351e-05/0.2795, allocations: 4 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.65e-05/0.2796, allocations: 17.67 kB / 427.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.2797, allocations: 318.8 kB / 427.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.123e-05/0.2797, allocations: 11.98 kB / 427.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.223e-05/0.2798, allocations: 21.72 kB / 427.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.211e-05/0.2799, allocations: 29.7 kB / 427.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.2799, allocations: 0 / 427.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001186/0.28, allocations: 57.61 kB / 427.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.28, allocations: 8 kB / 427.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.28, allocations: 4.125 kB / 427.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.28, allocations: 0 / 427.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.695e-05/0.2801, allocations: 4 kB / 427.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.2801, allocations: 0 / 427.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.719e-05/0.2801, allocations: 7.984 kB / 427.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-06/0.2801, allocations: 0 / 427.5 MB, free: 10.4 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.849e-05/0.2802, allocations: 121.7 kB / 427.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.101e-05/0.2803, allocations: 41.64 kB / 427.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.711e-05/0.2803, allocations: 15.84 kB / 427.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.2803, allocations: 0 / 427.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2803, allocations: 0 / 427.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.2803, allocations: 0 / 427.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001743/0.2805, allocations: 144.7 kB / 427.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2805, allocations: 0 / 427.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.073e-05/0.2805, allocations: 4 kB / 427.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.2805, allocations: 3.938 kB / 427.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.2805, allocations: 3.984 kB / 427.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2805, allocations: 4 kB / 427.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2805, allocations: 0 / 427.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.2807, allocations: 160.2 kB / 428 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.399e-05/0.2807, allocations: 19.94 kB / 428 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.2808, allocations: 0 / 428 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.624e-05/0.2808, allocations: 4 kB / 428 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.688e-05/0.2808, allocations: 3.984 kB / 428 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.2808, allocations: 4.031 kB / 428 MB, free: 9.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.056e-05/0.2809, allocations: 107.2 kB / 428.2 MB, free: 9.699 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2809, allocations: 0 / 428.2 MB, free: 9.699 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002173/0.2811, allocations: 4 kB / 428.2 MB, free: 9.695 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0004964/0.2816, allocations: 0.7015 MB / 428.9 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001319/0.2818, allocations: 19.98 kB / 428.9 MB, free: 8.945 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2818, allocations: 0 / 428.9 MB, free: 8.945 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.328e-05/0.2818, allocations: 15.98 kB / 428.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.2821, allocations: 13.38 kB / 428.9 MB, free: 8.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.2834, allocations: 1.308 MB / 430.2 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.2837, allocations: 0.6883 MB / 430.9 MB, free: 6.805 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.012e-05/0.2838, allocations: 8.109 kB / 430.9 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.2838, allocations: 15.47 kB / 430.9 MB, free: 6.781 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2838, allocations: 0 / 430.9 MB, free: 6.781 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02144/0.3053, allocations: 1.601 MB / 432.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.71, allocations: 6.234 kB / 432.5 MB, free: 5.324 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.104401847987901]