Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001725/0.001725, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002281/0.002281, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.337, allocations: 50.54 MB / 408.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003082/0.3401, allocations: 1.546 MB / 410.3 MB, free: 124 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004416/0.3406, allocations: 131.6 kB / 410.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.05e-05/0.3407, allocations: 0 / 410.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.609e-05/0.3408, allocations: 7.922 kB / 410.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.3409, allocations: 15.94 kB / 410.5 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.3412, allocations: 43.69 kB / 410.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.3413, allocations: 31.86 kB / 410.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.3414, allocations: 12 kB / 410.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.113e-05/0.3414, allocations: 15.92 kB / 410.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.884e-05/0.3415, allocations: 15.92 kB / 410.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.3415, allocations: 4 kB / 410.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.038e-05/0.3415, allocations: 0 / 410.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.388e-05/0.3416, allocations: 19.92 kB / 410.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.378e-05/0.3416, allocations: 23.81 kB / 410.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.3418, allocations: 47.8 kB / 410.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3418, allocations: 0 / 410.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3418, allocations: 4 kB / 410.7 MB, free: 15.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.3418, allocations: 0 / 410.7 MB, free: 15.75 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004826/0.3423, allocations: 373 kB / 411 MB, free: 15.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3423, allocations: 8.031 kB / 411.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.629e-05/0.3424, allocations: 30.75 kB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.3424, allocations: 12.84 kB / 411.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.3427, allocations: 196.1 kB / 411.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.3427, allocations: 384 / 411.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.3427, allocations: 4.375 kB / 411.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002919/0.343, allocations: 113.6 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3431, allocations: 3.938 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.3431, allocations: 8 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.3431, allocations: 7.938 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.239e-05/0.3432, allocations: 15.92 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000316/0.3435, allocations: 261.7 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.3437, allocations: 146.2 kB / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.67e-05/0.3438, allocations: 29.77 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.3438, allocations: 0 / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.3439, allocations: 34.56 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.3439, allocations: 4 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002528/0.3441, allocations: 69.61 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.3442, allocations: 81.11 kB / 412 MB, free: 14.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.3443, allocations: 130.1 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.3443, allocations: 25.7 kB / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.121e-05/0.3444, allocations: 96.03 kB / 412.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.612e-05/0.3444, allocations: 4.062 kB / 412.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.081e-05/0.3445, allocations: 25.66 kB / 412.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3446, allocations: 314.8 kB / 412.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.299e-05/0.3447, allocations: 11.98 kB / 412.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.923e-05/0.3447, allocations: 35.59 kB / 412.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.249e-05/0.3448, allocations: 55.36 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3449, allocations: 3.938 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001252/0.345, allocations: 61.53 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.345, allocations: 8 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.345, allocations: 4.125 kB / 412.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.345, allocations: 0 / 412.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.177e-05/0.3451, allocations: 11.98 kB / 412.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3451, allocations: 0 / 412.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.467e-05/0.3452, allocations: 4 kB / 412.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.617e-06/0.3452, allocations: 7.938 kB / 412.8 MB, free: 13.29 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.64e-05/0.3453, allocations: 125.7 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.073e-05/0.3454, allocations: 45.61 kB / 413 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.853e-05/0.3454, allocations: 12.23 kB / 413 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3454, allocations: 8 kB / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3454, allocations: 0 / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3454, allocations: 0 / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.3456, allocations: 173.5 kB / 413.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3456, allocations: 0 / 413.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.422e-05/0.3457, allocations: 11.94 kB / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3457, allocations: 0 / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.3457, allocations: 4 kB / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.3457, allocations: 3.938 kB / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3457, allocations: 3.984 kB / 413.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002067/0.3459, allocations: 168.2 kB / 413.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.432e-05/0.346, allocations: 93 kB / 413.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.346, allocations: 0 / 413.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.37e-05/0.3461, allocations: 11.98 kB / 413.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.364e-05/0.3462, allocations: 0 / 413.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.3462, allocations: 0 / 413.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.11e-05/0.3462, allocations: 110.6 kB / 413.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3462, allocations: 0 / 413.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.3465, allocations: 4 kB / 413.6 MB, free: 12.42 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 (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.0005182/0.347, allocations: 0.7015 MB / 414.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001542/0.3472, allocations: 31.92 kB / 414.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3472, allocations: 0 / 414.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.607e-05/0.3472, allocations: 11.94 kB / 414.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003783/0.3476, allocations: 18.25 kB / 414.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.3489, allocations: 1.334 MB / 415.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.3492, allocations: 0.6846 MB / 416.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.887e-05/0.3493, allocations: 7.984 kB / 416.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.192e-05/0.3493, allocations: 15.44 kB / 416.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of SimCode: time 1.472e-06/0.3493, allocations: 0 / 416.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.369, allocations: 1.501 MB / 417.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.363, allocations: 10.62 kB / 417.9 MB, free: 8.047 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches