Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009053/0.0009053, allocations: 177.7 kB / 16.12 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205 MB / 221.9 MB, free: 9.152 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007433/0.0007433, allocations: 90.36 kB / 269.9 MB, free: 8.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07002/0.07002, allocations: 12.57 MB / 330.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003577, allocations: 12.23 kB / 391.2 MB, free: 66.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09103, allocations: 49.98 MB / 441.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001674/0.09277, allocations: 1.155 MB / 442.3 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002611/0.09305, allocations: 99.67 kB / 442.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.135e-05/0.09313, allocations: 0 / 442.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.808e-05/0.09317, allocations: 0 / 442.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.02e-05/0.09321, allocations: 3.938 kB / 442.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002512/0.09347, allocations: 23.98 kB / 442.4 MB, free: 15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.74e-05/0.09356, allocations: 27.86 kB / 442.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.35e-05/0.09366, allocations: 12 kB / 442.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.88e-05/0.09369, allocations: 7.984 kB / 442.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.589e-05/0.09373, allocations: 7.938 kB / 442.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.09375, allocations: 4 kB / 442.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.266e-06/0.09377, allocations: 0 / 442.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.761e-05/0.09379, allocations: 7.922 kB / 442.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.905e-05/0.09382, allocations: 11.92 kB / 442.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.454e-05/0.0939, allocations: 19.91 kB / 442.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.0939, allocations: 0 / 442.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.09391, allocations: 4 kB / 442.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.09392, allocations: 4 kB / 442.5 MB, free: 14.89 MB / 298.7 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.0002925/0.09422, allocations: 335.7 kB / 442.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.09426, allocations: 8.031 kB / 442.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.999e-05/0.09429, allocations: 30.75 kB / 442.9 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.099e-05/0.09431, allocations: 16.78 kB / 442.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.09443, allocations: 176.2 kB / 443.1 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.202e-06/0.09444, allocations: 384 / 443.1 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.643e-06/0.09446, allocations: 4.375 kB / 443.1 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002479/0.09471, allocations: 123.8 kB / 443.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.09473, allocations: 3.938 kB / 443.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.09e-06/0.09474, allocations: 0 / 443.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.09475, allocations: 8 kB / 443.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.419e-05/0.09482, allocations: 27.92 kB / 443.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.857e-05/0.09491, allocations: 153.7 kB / 443.4 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.09504, allocations: 62.48 kB / 443.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.688e-05/0.09509, allocations: 28.92 kB / 443.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.09512, allocations: 4 kB / 443.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.098e-05/0.09513, allocations: 30.56 kB / 443.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.483e-06/0.09514, allocations: 3.984 kB / 443.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001725/0.09532, allocations: 73.61 kB / 443.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/0.09536, allocations: 59.41 kB / 443.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.122e-05/0.09541, allocations: 113.8 kB / 443.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.09543, allocations: 25.7 kB / 443.8 MB, free: 13.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.118e-05/0.09546, allocations: 80.14 kB / 443.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.915e-06/0.09547, allocations: 3.984 kB / 443.9 MB, free: 13.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.98e-05/0.09549, allocations: 17.72 kB / 443.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.121e-05/0.09555, allocations: 310.8 kB / 444.2 MB, free: 13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.115e-06/0.09556, allocations: 4 kB / 444.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.685e-05/0.09559, allocations: 35.42 kB / 444.2 MB, free: 12.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.658e-05/0.09562, allocations: 31.38 kB / 444.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.09563, allocations: 0 / 444.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.619e-05/0.09569, allocations: 61.53 kB / 444.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.0957, allocations: 11.94 kB / 444.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-06/0.09571, allocations: 0 / 444.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.596e-06/0.09573, allocations: 0 / 444.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.835e-05/0.09577, allocations: 8 kB / 444.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.09578, allocations: 3.938 kB / 444.3 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.681e-05/0.0958, allocations: 0 / 444.3 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-06/0.09581, allocations: 4 kB / 444.3 MB, free: 12.81 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * 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 5.02e-05/0.09586, allocations: 118.8 kB / 444.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.681e-05/0.09595, allocations: 61.61 kB / 444.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.135e-05/0.09598, allocations: 7.906 kB / 444.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.09599, allocations: 4 kB / 444.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.096, allocations: 0 / 444.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.09601, allocations: 0 / 444.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.918e-05/0.09606, allocations: 157.7 kB / 444.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.09607, allocations: 3.938 kB / 444.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.347e-05/0.09612, allocations: 12 kB / 444.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.09613, allocations: 7.875 kB / 444.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.549e-06/0.09614, allocations: 3.938 kB / 444.7 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.09614, allocations: 0 / 444.7 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.09615, allocations: 0 / 444.7 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.974e-05/0.09625, allocations: 89.02 kB / 444.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.65e-05/0.09628, allocations: 85.11 kB / 444.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.09629, allocations: 4.188 kB / 444.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.298e-05/0.09632, allocations: 7.984 kB / 444.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.974e-06/0.09633, allocations: 4 kB / 444.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-06/0.09634, allocations: 0 / 444.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.308e-05/0.09637, allocations: 83.28 kB / 445 MB, free: 12.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.09637, allocations: 0 / 445 MB, free: 12.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001599/0.09654, allocations: 4 kB / 445 MB, free: 12.06 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * 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.0002357/0.09678, allocations: 0.6279 MB / 445.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.633e-05/0.09686, allocations: 28.34 kB / 445.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.09687, allocations: 256 / 445.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.09688, allocations: 4 kB / 445.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001752/0.09706, allocations: 27.98 kB / 445.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006552/0.09772, allocations: 1.152 MB / 446.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.399e-05/0.09783, allocations: 0.6848 MB / 447.5 MB, free: 9.383 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.042e-05/0.09785, allocations: 0 / 447.5 MB, free: 9.383 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.559e-05/0.09788, allocations: 15.44 kB / 447.5 MB, free: 9.367 MB / 298.7 MB Notification: Performance of SimCode: time 8.01e-07/0.09788, allocations: 0 / 447.5 MB, free: 9.367 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06751/0.1654, allocations: 1.054 MB / 448.6 MB, free: 8.312 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/0.1656, allocations: 229.4 kB / 448.8 MB, free: 8.059 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.66/1.826, allocations: 0 / 448.8 MB, free: 8.059 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches