Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001587/0.001587, allocations: 118.4 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001948/0.001948, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 67.88 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4648/0.4663, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003676/0.4701, allocations: 1.628 MB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.4715, allocations: 0.5803 MB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.4716, allocations: 4 kB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.029e-05/0.4717, allocations: 7.875 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.4719, allocations: 11.88 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.4724, allocations: 67.17 kB / 411.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001812/0.4726, allocations: 59.78 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.4728, allocations: 28.16 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.473, allocations: 23.92 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.953e-05/0.4731, allocations: 27.84 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.299e-05/0.4731, allocations: 4 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.598e-05/0.4732, allocations: 8 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.272e-05/0.4732, allocations: 19.92 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.129e-05/0.4733, allocations: 31.69 kB / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.4735, allocations: 79.66 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4735, allocations: 0 / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.4735, allocations: 8 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.4735, allocations: 0 / 411.3 MB, free: 14.94 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005763/0.4741, allocations: 388.7 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.4741, allocations: 12.03 kB / 411.7 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.607e-05/0.4742, allocations: 30.75 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.4743, allocations: 20.83 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.4747, allocations: 219.9 kB / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.4747, allocations: 8.375 kB / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.4747, allocations: 384 / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.475, allocations: 138.9 kB / 412.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.4751, allocations: 7.938 kB / 412.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.4751, allocations: 4 kB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.4751, allocations: 3.984 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.829e-05/0.4752, allocations: 27.92 kB / 412.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003899/0.4756, allocations: 295.3 kB / 412.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.4757, allocations: 90.42 kB / 412.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.383e-05/0.4758, allocations: 43.48 kB / 412.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.4759, allocations: 8 kB / 412.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.4759, allocations: 34.5 kB / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.4759, allocations: 0 / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003225/0.4762, allocations: 105.9 kB / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.254e-05/0.4763, allocations: 136.5 kB / 412.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.4765, allocations: 153.3 kB / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.4765, allocations: 25.7 kB / 413.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.994e-05/0.4766, allocations: 96.12 kB / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.4766, allocations: 3.906 kB / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.4766, allocations: 17.72 kB / 413.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.4768, allocations: 330.8 kB / 413.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.291e-05/0.4768, allocations: 4 kB / 413.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.826e-05/0.4769, allocations: 49.14 kB / 413.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.477, allocations: 69.02 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.477, allocations: 0 / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001652/0.4772, allocations: 89.55 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.4772, allocations: 4 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.4772, allocations: 4 kB / 413.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.4772, allocations: 3.984 kB / 413.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.25e-05/0.4773, allocations: 15.94 kB / 413.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.4773, allocations: 3.984 kB / 413.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.907e-05/0.4774, allocations: 11.98 kB / 413.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.4774, allocations: 4.125 kB / 413.7 MB, free: 12.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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.276e-05/0.4775, allocations: 133.8 kB / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.418e-05/0.4776, allocations: 73.44 kB / 414 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.906e-05/0.4776, allocations: 15.83 kB / 414 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.4777, allocations: 0 / 414 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4777, allocations: 3.984 kB / 414 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4777, allocations: 4 kB / 414 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.4779, allocations: 173.6 kB / 414.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.4779, allocations: 0 / 414.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.834e-05/0.4779, allocations: 15.98 kB / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.478, allocations: 96 / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.478, allocations: 12 kB / 414.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.478, allocations: 0 / 414.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.478, allocations: 7.922 kB / 414.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002069/0.4782, allocations: 197.9 kB / 414.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.385e-05/0.4783, allocations: 100.9 kB / 414.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.4783, allocations: 0 / 414.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.376e-05/0.4784, allocations: 8 kB / 414.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.259e-05/0.4784, allocations: 0 / 414.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.4784, allocations: 4 kB / 414.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.884e-05/0.4785, allocations: 114.3 kB / 414.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4785, allocations: 0 / 414.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002366/0.4788, allocations: 12 kB / 414.6 MB, free: 11.21 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0004743/0.4792, allocations: 0.7343 MB / 415.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001637/0.4794, allocations: 43.92 kB / 415.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4794, allocations: 0 / 415.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.998e-05/0.4795, allocations: 15.92 kB / 415.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.4799, allocations: 36.03 kB / 415.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.4814, allocations: 1.511 MB / 416.9 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.4817, allocations: 0.6924 MB / 417.6 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.273e-05/0.4818, allocations: 16.59 kB / 417.7 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.698e-05/0.4819, allocations: 19.44 kB / 417.7 MB, free: 7.961 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4819, allocations: 0 / 417.7 MB, free: 7.961 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02326/0.5051, allocations: 2.09 MB / 419.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.122/8.628, allocations: 4 kB / 419.8 MB, free: 5.984 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches