Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001551/0.001551, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.001621, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.3 MB, free: 9.027 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 65.61 kB / 306.4 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1051, allocations: 50.53 MB / 356.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.002656/0.1078, allocations: 1.531 MB / 358.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001468/0.108, allocations: 27.92 kB / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.846e-05/0.108, allocations: 0 / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.677e-05/0.1081, allocations: 7.922 kB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.906e-05/0.1081, allocations: 3.938 kB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.1084, allocations: 19.98 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.612e-05/0.1085, allocations: 31.86 kB / 358.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.533e-05/0.1086, allocations: 8 kB / 358.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.118e-05/0.1086, allocations: 11.98 kB / 358.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.982e-05/0.1086, allocations: 11.92 kB / 358.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.1087, allocations: 7.938 kB / 358.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.706e-06/0.1087, allocations: 0 / 358.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.596e-05/0.1087, allocations: 4 kB / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.433e-05/0.1087, allocations: 15.92 kB / 358.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.351e-05/0.1088, allocations: 35.89 kB / 358.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1088, allocations: 0 / 358.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.1088, allocations: 0 / 358.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1089, allocations: 0 / 358.6 MB, free: 12.44 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004247/0.1093, allocations: 353.9 kB / 358.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.1093, allocations: 8.031 kB / 359 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.823e-05/0.1094, allocations: 34.69 kB / 359 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.772e-05/0.1094, allocations: 8.844 kB / 359 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.1096, allocations: 176.3 kB / 359.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.1096, allocations: 384 / 359.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-06/0.1096, allocations: 8.375 kB / 359.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003313/0.1099, allocations: 123.8 kB / 359.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.11, allocations: 3.938 kB / 359.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.11, allocations: 0 / 359.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-06/0.11, allocations: 0 / 359.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.1101, allocations: 27.92 kB / 359.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001247/0.1102, allocations: 161.7 kB / 359.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001475/0.1104, allocations: 54.55 kB / 359.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.426e-05/0.1105, allocations: 24.92 kB / 359.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-06/0.1105, allocations: 0 / 359.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.826e-05/0.1105, allocations: 30.56 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 7.92e-07/0.1105, allocations: 0 / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002592/0.1108, allocations: 89.52 kB / 359.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.1108, allocations: 63.41 kB / 359.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.954e-05/0.1109, allocations: 105.8 kB / 359.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.1109, allocations: 25.7 kB / 359.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.53e-05/0.111, allocations: 84.14 kB / 360 MB, free: 10.87 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.09e-05/0.111, allocations: 0 / 360 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.111, allocations: 17.7 kB / 360 MB, free: 10.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1111, allocations: 314.8 kB / 360.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.671e-05/0.1112, allocations: 4 kB / 360.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.043e-05/0.1112, allocations: 43.36 kB / 360.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.188e-05/0.1113, allocations: 35.31 kB / 360.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1113, allocations: 4 kB / 360.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.81e-05/0.1114, allocations: 69.47 kB / 360.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1114, allocations: 11.94 kB / 360.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1114, allocations: 0 / 360.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.637e-05/0.1114, allocations: 384 / 360.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.201e-05/0.1115, allocations: 8 kB / 360.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1115, allocations: 0 / 360.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.305e-05/0.1115, allocations: 8 kB / 360.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-06/0.1115, allocations: 0 / 360.5 MB, free: 10.32 MB / 302.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: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.252e-05/0.1116, allocations: 121.9 kB / 360.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.1118, allocations: 77.44 kB / 360.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.341e-05/0.1118, allocations: 7.906 kB / 360.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1118, allocations: 0 / 360.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1118, allocations: 0 / 360.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1118, allocations: 0 / 360.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.106e-05/0.1119, allocations: 157.7 kB / 360.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1119, allocations: 0 / 360.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.564e-05/0.112, allocations: 8 kB / 360.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.112, allocations: 3.938 kB / 360.8 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.112, allocations: 8 kB / 360.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.112, allocations: 0 / 360.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.112, allocations: 0 / 360.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001858/0.1122, allocations: 93.03 kB / 360.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.025e-05/0.1123, allocations: 81.05 kB / 361 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.1123, allocations: 7.938 kB / 361 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.157e-05/0.1124, allocations: 4 kB / 361 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.123e-06/0.1124, allocations: 3.984 kB / 361 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.1124, allocations: 8 kB / 361 MB, free: 9.641 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.333e-05/0.1124, allocations: 79.28 kB / 361.1 MB, free: 9.562 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.883e-06/0.1124, allocations: 0 / 361.1 MB, free: 9.562 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001823/0.1126, allocations: 11.94 kB / 361.1 MB, free: 9.551 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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.0004721/0.1131, allocations: 0.6436 MB / 361.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001129/0.1132, allocations: 35.98 kB / 361.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1132, allocations: 0 / 361.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.1132, allocations: 0 / 361.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.1135, allocations: 28.02 kB / 361.8 MB, free: 8.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008754/0.1144, allocations: 1.176 MB / 363 MB, free: 7.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.1147, allocations: 0.6847 MB / 363.7 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.875e-05/0.1147, allocations: 7.938 kB / 363.7 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.61e-05/0.1147, allocations: 15.42 kB / 363.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1147, allocations: 0 / 363.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.219/1.334, allocations: 1.218 MB / 364.9 MB, free: 5.703 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000231/1.334, allocations: 225 kB / 365.1 MB, free: 5.441 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.936/3.27, allocations: 0 / 365.1 MB, free: 5.441 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches