Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",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.001885/0.001886, allocations: 108.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.002326/0.002326, allocations: 199.9 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.204/2.204, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 51.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.519/0.5207, allocations: 49.43 MB / 400.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.006656/0.5274, allocations: 1.538 MB / 401.8 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000786/0.5283, allocations: 143.8 kB / 401.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.5285, allocations: 1.219 kB / 401.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.8e-05/0.5287, allocations: 3.938 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002489/0.5289, allocations: 18.53 kB / 401.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004417/0.5294, allocations: 32.48 kB / 402 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001825/0.5296, allocations: 40.06 kB / 402 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.5298, allocations: 11.98 kB / 402 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.32e-05/0.5299, allocations: 11.94 kB / 402 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.778e-05/0.5299, allocations: 19.92 kB / 402.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.18e-05/0.53, allocations: 4 kB / 402.1 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.341e-05/0.53, allocations: 4 kB / 402.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.6e-05/0.5301, allocations: 15.92 kB / 402.1 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.737e-05/0.5302, allocations: 19.81 kB / 402.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.5305, allocations: 51.75 kB / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.5305, allocations: 0 / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.546e-06/0.5305, allocations: 0 / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.5305, allocations: 0 / 402.1 MB, free: 6.938 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0009255/0.5315, allocations: 368.9 kB / 402.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.869e-05/0.5316, allocations: 8.031 kB / 402.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.673e-05/0.5316, allocations: 42.73 kB / 402.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.317e-05/0.5317, allocations: 8.844 kB / 402.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005439/0.5323, allocations: 192.1 kB / 402.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.5323, allocations: 4.312 kB / 402.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/0.5323, allocations: 4.375 kB / 402.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004859/0.5328, allocations: 121.5 kB / 402.9 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.5329, allocations: 3.938 kB / 402.9 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.5329, allocations: 4 kB / 402.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.5329, allocations: 0 / 402.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.533, allocations: 23.97 kB / 402.9 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005403/0.5336, allocations: 261.8 kB / 403.2 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003905/0.534, allocations: 138.2 kB / 403.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.5341, allocations: 33.7 kB / 403.3 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.545e-05/0.5342, allocations: 4 kB / 403.3 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.5342, allocations: 34.56 kB / 403.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.673e-06/0.5343, allocations: 0 / 403.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.000438/0.5347, allocations: 81.5 kB / 403.5 MB, free: 5.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.5348, allocations: 77.11 kB / 403.5 MB, free: 5.312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.535, allocations: 130.1 kB / 403.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.345e-05/0.5351, allocations: 33.83 kB / 403.7 MB, free: 5.133 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.5352, allocations: 84.14 kB / 403.8 MB, free: 5.047 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.696e-05/0.5353, allocations: 3.906 kB / 403.8 MB, free: 5.043 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.23e-05/0.5354, allocations: 21.7 kB / 403.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000234/0.5356, allocations: 314.8 kB / 404.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.6e-05/0.5357, allocations: 11.98 kB / 404.1 MB, free: 4.688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.052e-05/0.5358, allocations: 31.44 kB / 404.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000133/0.5359, allocations: 47.36 kB / 404.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.5359, allocations: 3.938 kB / 404.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002271/0.5362, allocations: 77.45 kB / 404.3 MB, free: 4.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.5362, allocations: 8 kB / 404.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.5362, allocations: 0 / 404.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.414e-05/0.5363, allocations: 0 / 404.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.389e-05/0.5364, allocations: 8 kB / 404.3 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.887e-05/0.5364, allocations: 7.984 kB / 404.3 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.609e-05/0.5365, allocations: 0 / 404.3 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.5365, allocations: 7.938 kB / 404.3 MB, free: 4.469 MB / 318.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 0.0002628/0.5368, allocations: 125.8 kB / 404.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.5369, allocations: 53.53 kB / 404.5 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.942e-05/0.537, allocations: 12.25 kB / 404.5 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.537, allocations: 336 / 404.5 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.537, allocations: 0 / 404.5 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/0.537, allocations: 0 / 404.5 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000318/0.5374, allocations: 173.6 kB / 404.7 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.5374, allocations: 0 / 404.7 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.69e-05/0.5375, allocations: 15.97 kB / 404.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.5375, allocations: 0 / 404.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.5375, allocations: 3.938 kB / 404.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.636e-06/0.5375, allocations: 4 kB / 404.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5375, allocations: 0 / 404.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003694/0.5379, allocations: 172.2 kB / 404.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.538, allocations: 89.09 kB / 404.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.5381, allocations: 0 / 404.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.662e-05/0.5382, allocations: 4 kB / 404.9 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.039e-05/0.5382, allocations: 4 kB / 404.9 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.5382, allocations: 4 kB / 404.9 MB, free: 3.711 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001183/0.5384, allocations: 106.2 kB / 405.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5384, allocations: 0 / 405.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003883/0.5388, allocations: 4 kB / 405.1 MB, free: 3.605 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 (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.0007935/0.5396, allocations: 0.7092 MB / 405.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002276/0.5398, allocations: 27.98 kB / 405.8 MB, free: 2.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5398, allocations: 0 / 405.8 MB, free: 2.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.763e-05/0.5399, allocations: 11.92 kB / 405.8 MB, free: 2.828 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006084/0.5405, allocations: 24.02 kB / 405.8 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.5428, allocations: 1.326 MB / 407.2 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004569/0.5432, allocations: 0.6961 MB / 407.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.096e-05/0.5433, allocations: 4 kB / 407.9 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.508e-05/0.5434, allocations: 15.42 kB / 407.9 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5434, allocations: 0 / 407.9 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/0.5737, allocations: 1.479 MB / 409.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.74, allocations: 20.42 kB / 409.4 MB, free: 15.23 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches