Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",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.001412/0.001412, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001412/0.001412, allocations: 193.4 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.597/1.597, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001658, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.326, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.003272/0.3293, allocations: 1.69 MB / 401.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004597/0.3298, allocations: 166 kB / 402.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.607e-05/0.3298, allocations: 3.938 kB / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.143e-05/0.3299, allocations: 7.875 kB / 402.1 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001268/0.3301, allocations: 15.88 kB / 402.1 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.3303, allocations: 51.88 kB / 402.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.3304, allocations: 43.92 kB / 402.2 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.3306, allocations: 27.97 kB / 402.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.813e-05/0.3306, allocations: 23.86 kB / 402.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.03e-05/0.3307, allocations: 31.86 kB / 402.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.169e-05/0.3307, allocations: 4 kB / 402.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.392e-05/0.3307, allocations: 7.938 kB / 402.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.327e-05/0.3308, allocations: 19.92 kB / 402.3 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.533e-05/0.3308, allocations: 35.73 kB / 402.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.331, allocations: 62.69 kB / 402.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.331, allocations: 0 / 402.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.331, allocations: 0 / 402.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.331, allocations: 0 / 402.4 MB, free: 6.613 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005267/0.3315, allocations: 395 kB / 402.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3316, allocations: 15.89 kB / 402.8 MB, free: 6.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.861e-05/0.3316, allocations: 42.73 kB / 402.9 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.315e-05/0.3317, allocations: 12.84 kB / 402.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/0.3319, allocations: 206.6 kB / 403.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.332, allocations: 8.375 kB / 403.1 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.332, allocations: 4.375 kB / 403.1 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.3323, allocations: 162.3 kB / 403.3 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.3324, allocations: 3.938 kB / 403.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.3324, allocations: 4 kB / 403.3 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3324, allocations: 7.984 kB / 403.3 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.3325, allocations: 35.97 kB / 403.3 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004094/0.3329, allocations: 365.8 kB / 403.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002516/0.3332, allocations: 123.9 kB / 403.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.3333, allocations: 54.62 kB / 403.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.3333, allocations: 160 / 403.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.3334, allocations: 46.48 kB / 403.9 MB, free: 4.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 9.51e-07/0.3334, allocations: 0 / 403.9 MB, free: 4.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003487/0.3337, allocations: 125.5 kB / 404 MB, free: 4.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.134e-05/0.3338, allocations: 106.8 kB / 404.1 MB, free: 4.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.334, allocations: 137.8 kB / 404.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.334, allocations: 29.7 kB / 404.3 MB, free: 4.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.502e-05/0.334, allocations: 88.08 kB / 404.4 MB, free: 4.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.3341, allocations: 15.89 kB / 404.4 MB, free: 4.395 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.256e-05/0.3341, allocations: 25.89 kB / 404.4 MB, free: 4.363 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3343, allocations: 326.8 kB / 404.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.176e-05/0.3344, allocations: 15.98 kB / 404.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.4e-05/0.3345, allocations: 63.72 kB / 404.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.3346, allocations: 99.59 kB / 404.9 MB, free: 3.805 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3346, allocations: 0 / 404.9 MB, free: 3.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001948/0.3348, allocations: 113.4 kB / 405 MB, free: 3.688 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.3349, allocations: 4 kB / 405 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3349, allocations: 4 kB / 405 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.3349, allocations: 4.281 kB / 405 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.548e-05/0.335, allocations: 27.92 kB / 405 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.335, allocations: 0 / 405 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.925e-05/0.3351, allocations: 4 kB / 405 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.946e-06/0.3351, allocations: 4 kB / 405.1 MB, free: 3.641 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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.0001002/0.3352, allocations: 129.8 kB / 405.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.3353, allocations: 77.55 kB / 405.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.077e-05/0.3354, allocations: 16.7 kB / 405.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.3354, allocations: 0 / 405.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.3354, allocations: 8 kB / 405.3 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3354, allocations: 4 kB / 405.3 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002653/0.3357, allocations: 189.5 kB / 405.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3357, allocations: 0 / 405.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.581e-05/0.3358, allocations: 19.98 kB / 405.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3358, allocations: 0 / 405.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.3358, allocations: 8 kB / 405.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3358, allocations: 0 / 405.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3358, allocations: 3.938 kB / 405.5 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003907/0.3362, allocations: 312.3 kB / 405.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.185e-05/0.3363, allocations: 101.2 kB / 405.9 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.3363, allocations: 8 kB / 405.9 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.58e-05/0.3364, allocations: 0 / 405.9 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.01e-05/0.3365, allocations: 15.92 kB / 405.9 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.752e-06/0.3365, allocations: 4 kB / 405.9 MB, free: 2.652 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.974e-05/0.3366, allocations: 105.3 kB / 406 MB, free: 2.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3366, allocations: 0 / 406 MB, free: 2.551 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002857/0.3368, allocations: 12 kB / 406 MB, free: 2.539 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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.0006604/0.3375, allocations: 0.846 MB / 406.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001867/0.3377, allocations: 67.84 kB / 407 MB, free: 1.594 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3377, allocations: 0.5625 kB / 407 MB, free: 1.594 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.672e-05/0.3378, allocations: 19.92 kB / 407 MB, free: 1.574 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004413/0.3382, allocations: 39.95 kB / 407 MB, free: 1.535 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.3399, allocations: 1.581 MB / 408.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.3403, allocations: 0.7001 MB / 409.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.608e-05/0.3403, allocations: 12.66 kB / 409.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.873e-05/0.3404, allocations: 23.44 kB / 409.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.3404, allocations: 0 / 409.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02267/0.363, allocations: 1.872 MB / 411.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.48/8.843, allocations: 14.89 kB / 411.2 MB, free: 13.26 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches