Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",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.001319/0.001319, allocations: 178.4 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.426/1.426, allocations: 205 MB / 221.9 MB, free: 9.16 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.0007259/0.0007257, allocations: 92.22 kB / 269.9 MB, free: 8.68 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.07668/0.07668, allocations: 12.57 MB / 330.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003321/0.0003322, allocations: 12.28 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08027/0.08062, allocations: 49.98 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.001275/0.08193, allocations: 1.207 MB / 442.3 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002878/0.08223, allocations: 131.6 kB / 442.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.131e-05/0.08232, allocations: 0 / 442.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.047e-05/0.08237, allocations: 11.92 kB / 442.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.08248, allocations: 0 / 442.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001974/0.08269, allocations: 35.91 kB / 442.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.394e-05/0.08276, allocations: 27.92 kB / 442.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.471e-05/0.08285, allocations: 12 kB / 442.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.345e-05/0.08288, allocations: 3.938 kB / 442.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.597e-05/0.08291, allocations: 15.92 kB / 442.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.08294, allocations: 3.938 kB / 442.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.968e-06/0.08295, allocations: 4 kB / 442.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.131e-05/0.083, allocations: 7.984 kB / 442.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.291e-05/0.08303, allocations: 19.81 kB / 442.6 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.659e-05/0.0831, allocations: 32.17 kB / 442.6 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.08311, allocations: 4 kB / 442.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.08312, allocations: 0 / 442.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.266e-06/0.08312, allocations: 0 / 442.7 MB, free: 14.77 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000299/0.08343, allocations: 351.3 kB / 443 MB, free: 14.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.08347, allocations: 8.031 kB / 443 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.463e-05/0.0835, allocations: 34.75 kB / 443 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.234e-05/0.08353, allocations: 8.844 kB / 443 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.08365, allocations: 192 kB / 443.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.08368, allocations: 4.375 kB / 443.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.08369, allocations: 8.312 kB / 443.2 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.08389, allocations: 93.61 kB / 443.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.08391, allocations: 7.938 kB / 443.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.08393, allocations: 0 / 443.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.08393, allocations: 0 / 443.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.833e-05/0.08399, allocations: 15.98 kB / 443.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002325/0.08423, allocations: 253.8 kB / 443.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.689e-05/0.0843, allocations: 53.08 kB / 443.7 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.069e-05/0.08433, allocations: 17.78 kB / 443.7 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.08436, allocations: 0 / 443.7 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.08438, allocations: 38.5 kB / 443.7 MB, free: 13.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.08439, allocations: 0 / 443.7 MB, free: 13.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001696/0.08456, allocations: 53.59 kB / 443.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.08461, allocations: 93.3 kB / 443.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.66e-05/0.08469, allocations: 131.2 kB / 444 MB, free: 13.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.542e-06/0.0847, allocations: 25.7 kB / 444 MB, free: 13.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.948e-05/0.08474, allocations: 84.14 kB / 444.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.913e-06/0.08475, allocations: 0 / 444.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.858e-05/0.08478, allocations: 13.72 kB / 444.1 MB, free: 13.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.996e-05/0.08483, allocations: 314.8 kB / 444.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.632e-05/0.08486, allocations: 7.984 kB / 444.4 MB, free: 12.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.16e-05/0.08489, allocations: 17.72 kB / 444.4 MB, free: 12.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.527e-05/0.08494, allocations: 33.59 kB / 444.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.08495, allocations: 3.938 kB / 444.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.104e-05/0.08503, allocations: 49.75 kB / 444.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.08505, allocations: 8 kB / 444.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.08506, allocations: 0 / 444.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.988e-06/0.08507, allocations: 0 / 444.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.227e-05/0.08509, allocations: 3.984 kB / 444.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.249e-06/0.0851, allocations: 0 / 444.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.298e-05/0.08513, allocations: 15.78 kB / 444.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-06/0.08514, allocations: 0 / 444.6 MB, free: 12.59 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.212e-05/0.08519, allocations: 117.8 kB / 444.7 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.346e-05/0.08524, allocations: 45.73 kB / 444.7 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.358e-05/0.08527, allocations: 15.48 kB / 444.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.0853, allocations: 0 / 444.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.08532, allocations: 0 / 444.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.08532, allocations: 0 / 444.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001228/0.08545, allocations: 165.6 kB / 444.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.08546, allocations: 0 / 444.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.604e-06/0.08548, allocations: 4 kB / 444.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.08549, allocations: 0 / 444.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.0855, allocations: 3.938 kB / 444.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.08551, allocations: 4.031 kB / 444.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.08551, allocations: 0 / 444.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001009/0.08562, allocations: 164.2 kB / 445.1 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.951e-05/0.08567, allocations: 89 kB / 445.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.08569, allocations: 0 / 445.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.954e-05/0.08574, allocations: 4.031 kB / 445.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.907e-05/0.08578, allocations: 4 kB / 445.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.08579, allocations: 0 / 445.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.712e-05/0.08583, allocations: 107.8 kB / 445.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.08583, allocations: 0 / 445.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001963/0.08603, allocations: 4 kB / 445.3 MB, free: 11.78 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002323/0.08627, allocations: 0.6859 MB / 446 MB, free: 11.06 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.111e-05/0.08636, allocations: 19.98 kB / 446 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.08637, allocations: 0 / 446 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.248e-05/0.0864, allocations: 7.938 kB / 446 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.08669, allocations: 32.17 kB / 446 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006937/0.08739, allocations: 1.254 MB / 447.3 MB, free: 9.656 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.97e-05/0.08751, allocations: 0.6848 MB / 447.9 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.819e-05/0.08753, allocations: 0 / 447.9 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.911e-05/0.08757, allocations: 15.44 kB / 448 MB, free: 8.93 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.08757, allocations: 3.938 kB / 448 MB, free: 8.926 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03884/0.1264, allocations: 1.144 MB / 449.1 MB, free: 7.777 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.1266, allocations: 225.5 kB / 449.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.547/1.674, allocations: 11.94 kB / 449.3 MB, free: 7.516 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,step.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample.u,sample.y,step.startTime,step.startValue,step.y,time