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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001878/0.001878, allocations: 104.5 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003051/0.003051, allocations: 196 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.041/2.041, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 43.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5305/0.5321, allocations: 49.45 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.005341/0.5375, allocations: 1.544 MB / 401.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.5391, allocations: 477.1 kB / 402.3 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.5392, allocations: 0 / 402.3 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.017e-05/0.5394, allocations: 3.938 kB / 402.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.5396, allocations: 15.86 kB / 402.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.54, allocations: 35.91 kB / 402.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001507/0.5402, allocations: 43.78 kB / 402.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.5404, allocations: 15.98 kB / 402.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.962e-05/0.5405, allocations: 15.92 kB / 402.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.874e-05/0.5406, allocations: 15.94 kB / 402.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.644e-05/0.5406, allocations: 0 / 402.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.746e-05/0.5406, allocations: 4 kB / 402.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.943e-05/0.5407, allocations: 15.92 kB / 402.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.404e-05/0.5408, allocations: 19.81 kB / 402.4 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.541, allocations: 51.8 kB / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.541, allocations: 0 / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.541, allocations: 0 / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.541, allocations: 3.938 kB / 402.5 MB, free: 6.551 MB / 318.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.0007019/0.5417, allocations: 368.9 kB / 402.9 MB, free: 6.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.324e-05/0.5418, allocations: 15.89 kB / 402.9 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.544e-05/0.5419, allocations: 34.75 kB / 402.9 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.136e-05/0.5419, allocations: 8.844 kB / 402.9 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005213/0.5424, allocations: 192.1 kB / 403.1 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.5425, allocations: 8.375 kB / 403.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.5425, allocations: 384 / 403.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003532/0.5429, allocations: 93.17 kB / 403.2 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.5429, allocations: 4 kB / 403.2 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.5429, allocations: 8 kB / 403.2 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.5429, allocations: 3.938 kB / 403.2 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.543, allocations: 15.92 kB / 403.2 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004676/0.5435, allocations: 265.8 kB / 403.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.5437, allocations: 49.14 kB / 403.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.747e-05/0.5437, allocations: 17.77 kB / 403.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.5438, allocations: 8 kB / 403.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.5438, allocations: 30.56 kB / 403.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.373e-06/0.5438, allocations: 0 / 403.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003686/0.5442, allocations: 73.45 kB / 403.7 MB, free: 5.176 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.613e-05/0.5443, allocations: 81.11 kB / 403.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.5445, allocations: 140.7 kB / 403.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.5445, allocations: 29.7 kB / 403.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.164e-05/0.5446, allocations: 84.14 kB / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.5446, allocations: 4 kB / 404 MB, free: 4.809 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.7e-05/0.5447, allocations: 17.62 kB / 404 MB, free: 4.785 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.5449, allocations: 322.8 kB / 404.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.776e-05/0.545, allocations: 8 kB / 404.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.823e-05/0.545, allocations: 25.64 kB / 404.4 MB, free: 4.422 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.5451, allocations: 29.7 kB / 404.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5452, allocations: 0 / 404.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001591/0.5453, allocations: 53.62 kB / 404.4 MB, free: 4.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.5454, allocations: 8 kB / 404.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.5454, allocations: 0 / 404.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.5454, allocations: 4.125 kB / 404.5 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.5455, allocations: 7.984 kB / 404.5 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.5456, allocations: 0 / 404.5 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.374e-05/0.5456, allocations: 4 kB / 404.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.5456, allocations: 0 / 404.5 MB, free: 4.305 MB / 318.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 0.0001542/0.5458, allocations: 117.8 kB / 404.6 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-05/0.5459, allocations: 41.59 kB / 404.6 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.491e-05/0.546, allocations: 11.88 kB / 404.6 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.546, allocations: 7.969 kB / 404.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.546, allocations: 0 / 404.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.546, allocations: 0 / 404.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002928/0.5463, allocations: 169.6 kB / 404.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.5463, allocations: 0 / 404.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.925e-05/0.5464, allocations: 11.92 kB / 404.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.5464, allocations: 0 / 404.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.5464, allocations: 4 kB / 404.8 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.5465, allocations: 4 kB / 404.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5465, allocations: 0 / 404.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002712/0.5467, allocations: 160.2 kB / 405 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.5469, allocations: 89.02 kB / 405.1 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.5469, allocations: 7.984 kB / 405.1 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.547, allocations: 4 kB / 405.1 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.589e-05/0.5471, allocations: 3.938 kB / 405.1 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.5471, allocations: 4 kB / 405.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001159/0.5472, allocations: 111.3 kB / 405.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5472, allocations: 0 / 405.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003785/0.5476, allocations: 4 kB / 405.2 MB, free: 3.461 MB / 318.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.0008572/0.5485, allocations: 0.7052 MB / 405.9 MB, free: 2.727 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002151/0.5487, allocations: 23.92 kB / 405.9 MB, free: 2.703 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5487, allocations: 0 / 405.9 MB, free: 2.703 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.927e-05/0.5488, allocations: 8 kB / 405.9 MB, free: 2.695 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005489/0.5494, allocations: 18.98 kB / 406 MB, free: 2.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.5513, allocations: 1.312 MB / 407.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006517/0.552, allocations: 0.6883 MB / 408 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.682e-05/0.552, allocations: 4 kB / 408 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.395e-05/0.5521, allocations: 19.42 kB / 408 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.5521, allocations: 7.938 kB / 408 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03305/0.5852, allocations: 1.471 MB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/13.05, allocations: 8.688 kB / 409.5 MB, free: 15.17 MB / 334.1 MB (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 --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) 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) Reference file matches