Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.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: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001465/0.001465, allocations: 177.8 kB / 8.403 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.04/2.04, allocations: 205.3 MB / 214.1 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 82.28 kB / 262.1 MB, free: 1.684 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.1159/0.1159, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.981e-05/1.993e-05, allocations: 0 / 378.9 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3137, allocations: 50.38 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1655/0.4793, allocations: 76.99 MB / 0.4944 GB, free: 5.328 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/0.4796, allocations: 79.94 kB / 0.4945 GB, free: 5.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003847/0.4835, allocations: 1.056 MB / 0.4955 GB, free: 4.195 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4836, allocations: 3.938 kB / 0.4955 GB, free: 4.191 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.4836, allocations: 4 kB / 0.4955 GB, free: 4.188 MB / 346.7 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.0003814/0.484, allocations: 342.4 kB / 0.4959 GB, free: 3.809 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.484, allocations: 12.03 kB / 0.4959 GB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.4841, allocations: 7.906 kB / 0.4959 GB, free: 3.789 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.4843, allocations: 178.9 kB / 0.496 GB, free: 3.574 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.4844, allocations: 0 / 0.496 GB, free: 3.574 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.4844, allocations: 11.94 kB / 0.4961 GB, free: 3.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.8e-05/0.4845, allocations: 16 kB / 0.4961 GB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.4848, allocations: 109 kB / 0.4962 GB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.4848, allocations: 0 / 0.4962 GB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.4848, allocations: 0 / 0.4962 GB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.4848, allocations: 4 kB / 0.4962 GB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.4852, allocations: 238.3 kB / 0.4964 GB, free: 3.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.4854, allocations: 126.2 kB / 0.4965 GB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.298e-05/0.4854, allocations: 21.84 kB / 0.4965 GB, free: 2.957 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.4855, allocations: 8.078 kB / 0.4966 GB, free: 2.949 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.4855, allocations: 34.56 kB / 0.4966 GB, free: 2.906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.643e-06/0.4855, allocations: 0 / 0.4966 GB, free: 2.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001752/0.4857, allocations: 53.55 kB / 0.4966 GB, free: 2.848 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.4858, allocations: 85.09 kB / 0.4967 GB, free: 2.746 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.4859, allocations: 114.2 kB / 0.4968 GB, free: 2.629 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.486, allocations: 25.7 kB / 0.4969 GB, free: 2.598 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.4861, allocations: 154.6 kB / 0.497 GB, free: 2.445 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.988e-06/0.4861, allocations: 0 / 0.497 GB, free: 2.445 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/0.4861, allocations: 4 kB / 0.497 GB, free: 2.441 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4863, allocations: 310.8 kB / 0.4973 GB, free: 2.129 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.577e-05/0.4863, allocations: 4.031 kB / 0.4973 GB, free: 2.125 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.304e-05/0.4863, allocations: 31.42 kB / 0.4973 GB, free: 2.082 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.732e-05/0.4864, allocations: 4 kB / 0.4973 GB, free: 2.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.4864, allocations: 0 / 0.4973 GB, free: 2.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001187/0.4865, allocations: 65.44 kB / 0.4974 GB, free: 2.008 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.4865, allocations: 7.984 kB / 0.4974 GB, free: 2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.4866, allocations: 4 kB / 0.4974 GB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.4866, allocations: 0 / 0.4974 GB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.833e-05/0.4866, allocations: 0 / 0.4974 GB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.4866, allocations: 4 kB / 0.4974 GB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.248e-05/0.4867, allocations: 0 / 0.4974 GB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.4867, allocations: 4 kB / 0.4974 GB, free: 1.988 MB / 346.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: 4 (sample.u,sample.y,assignClock.y,assignClock.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.204e-05/0.4868, allocations: 114.5 kB / 0.4975 GB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.866e-05/0.4869, allocations: 49.64 kB / 0.4976 GB, free: 1.816 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.144e-05/0.487, allocations: 8.344 kB / 0.4976 GB, free: 1.809 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.487, allocations: 7.938 kB / 0.4976 GB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.487, allocations: 4 kB / 0.4976 GB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.487, allocations: 0 / 0.4976 GB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.4872, allocations: 142.2 kB / 0.4977 GB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4872, allocations: 0 / 0.4977 GB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.136e-05/0.4873, allocations: 0 / 0.4977 GB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.4873, allocations: 4 kB / 0.4977 GB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.4873, allocations: 0 / 0.4977 GB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.4873, allocations: 7.953 kB / 0.4977 GB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4873, allocations: 0 / 0.4977 GB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001649/0.4875, allocations: 166.2 kB / 0.4979 GB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.604e-05/0.4876, allocations: 93 kB / 0.498 GB, free: 1.312 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.546e-05/0.4876, allocations: 11.94 kB / 0.498 GB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.515e-05/0.4877, allocations: 0 / 0.498 GB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.4878, allocations: 7.938 kB / 0.498 GB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.4878, allocations: 4 kB / 0.498 GB, free: 1.289 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.028e-05/0.4879, allocations: 101 kB / 0.4981 GB, free: 1.191 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4879, allocations: 0 / 0.4981 GB, free: 1.191 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002913/0.4882, allocations: 4 kB / 0.4981 GB, free: 1.188 MB / 346.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: 4 (sample.u,assignClock.u,assignClock.y,sample.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001227/0.4883, allocations: 91.25 kB / 0.4982 GB, free: 1.086 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.934e-05/0.4885, allocations: 16 kB / 0.4982 GB, free: 1.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.4885, allocations: 4.25 kB / 0.4982 GB, free: 1.066 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.982e-05/0.4885, allocations: 7.938 kB / 0.4982 GB, free: 1.059 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.4888, allocations: 19.39 kB / 0.4982 GB, free: 1.043 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003318/0.4892, allocations: 126.5 kB / 0.4984 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.4895, allocations: 0.6923 MB / 0.499 GB, free: 168 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.998e-05/0.4896, allocations: 7.438 kB / 0.499 GB, free: 160 kB / 346.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4896, allocations: 0 / 0.499 GB, free: 160 kB / 346.7 MB Notification: Performance of Templates: time 0.002613/0.4922, allocations: 0.6586 MB / 0.4997 GB, free: 15.5 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches