Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001216/0.001216, allocations: 192.7 kB / 7.848 MB, free: 2.48 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 205.2 MB / 213.5 MB, free: 13.91 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.0009037/0.0009037, allocations: 96.75 kB / 261.5 MB, free: 13.54 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.08282/0.08282, allocations: 12.58 MB / 322 MB, free: 0.918 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.116e-06/8.146e-06, allocations: 4 kB / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09609, allocations: 50.37 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2946/0.3908, allocations: 76.92 MB / 0.4938 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.391, allocations: 76.12 kB / 0.4939 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002456/0.3935, allocations: 0.7419 MB / 0.4946 GB, free: 11.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.3935, allocations: 7.938 kB / 0.4946 GB, free: 11.7 MB / 330.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.000251/0.3938, allocations: 337.7 kB / 0.495 GB, free: 11.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3938, allocations: 11.72 kB / 0.495 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.89e-05/0.3939, allocations: 7.719 kB / 0.495 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.3941, allocations: 187.6 kB / 0.4952 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.3941, allocations: 3.875 kB / 0.4952 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.3941, allocations: 3.906 kB / 0.4952 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.589e-05/0.3942, allocations: 15.28 kB / 0.4952 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.3944, allocations: 98.27 kB / 0.4953 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.3944, allocations: 3.938 kB / 0.4953 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-06/0.3944, allocations: 0 / 0.4953 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3944, allocations: 0 / 0.4953 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002794/0.3947, allocations: 241.9 kB / 0.4955 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.704e-05/0.3948, allocations: 130.2 kB / 0.4956 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.917e-05/0.3949, allocations: 28.98 kB / 0.4957 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.3949, allocations: 1.969 kB / 0.4957 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.318e-05/0.3949, allocations: 37.44 kB / 0.4957 GB, free: 10.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.242e-06/0.3949, allocations: 0 / 0.4957 GB, free: 10.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001581/0.3951, allocations: 55.75 kB / 0.4957 GB, free: 10.57 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/0.3951, allocations: 81.05 kB / 0.4958 GB, free: 10.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.6e-05/0.3952, allocations: 126.7 kB / 0.4959 GB, free: 10.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.835e-06/0.3952, allocations: 25.7 kB / 0.496 GB, free: 10.36 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.423e-05/0.3953, allocations: 80.14 kB / 0.496 GB, free: 10.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.207e-06/0.3953, allocations: 11.78 kB / 0.4961 GB, free: 10.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-06/0.3953, allocations: 0 / 0.4961 GB, free: 10.27 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.757e-05/0.3953, allocations: 317.8 kB / 0.4964 GB, free: 9.953 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.08e-05/0.3954, allocations: 4.031 kB / 0.4964 GB, free: 9.949 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.852e-05/0.3954, allocations: 27.12 kB / 0.4964 GB, free: 9.918 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.694e-05/0.3954, allocations: 5.234 kB / 0.4964 GB, free: 9.918 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.3954, allocations: 0 / 0.4964 GB, free: 9.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.713e-05/0.3955, allocations: 54.83 kB / 0.4964 GB, free: 9.879 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.3955, allocations: 5.469 kB / 0.4965 GB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.341e-06/0.3955, allocations: 7.812 kB / 0.4965 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.3955, allocations: 0 / 0.4965 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.18e-05/0.3956, allocations: 3.938 kB / 0.4965 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.3956, allocations: 3.812 kB / 0.4965 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.77e-05/0.3956, allocations: 1.359 kB / 0.4965 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.3956, allocations: 3.906 kB / 0.4965 GB, free: 9.871 MB / 330.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 4.182e-05/0.3957, allocations: 108.4 kB / 0.4966 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.061e-05/0.3957, allocations: 47.61 kB / 0.4966 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.585e-05/0.3958, allocations: 11.81 kB / 0.4966 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3958, allocations: 0 / 0.4966 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3958, allocations: 1.266 kB / 0.4966 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3958, allocations: 0 / 0.4966 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.3959, allocations: 147.1 kB / 0.4968 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3959, allocations: 3.938 kB / 0.4968 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.876e-06/0.3959, allocations: 5.484 kB / 0.4968 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3959, allocations: 0 / 0.4968 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.3959, allocations: 0 / 0.4968 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.396, allocations: 7.906 kB / 0.4968 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.396, allocations: 0.7812 kB / 0.4968 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.93e-05/0.396, allocations: 160.1 kB / 0.4969 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.903e-05/0.3961, allocations: 92.7 kB / 0.497 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.3961, allocations: 0 / 0.497 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.539e-05/0.3962, allocations: 11.84 kB / 0.497 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.915e-05/0.3962, allocations: 0.9375 kB / 0.497 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.3962, allocations: 0 / 0.497 GB, free: 9.289 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.021e-05/0.3963, allocations: 100.9 kB / 0.4971 GB, free: 9.215 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002266/0.3965, allocations: 3.719 kB / 0.4971 GB, free: 9.215 MB / 330.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 7.318e-05/0.3966, allocations: 102.5 kB / 0.4972 GB, free: 9.121 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001027/0.3967, allocations: 15.7 kB / 0.4973 GB, free: 9.121 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3967, allocations: 256 / 0.4973 GB, free: 9.121 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.058e-05/0.3967, allocations: 7.781 kB / 0.4973 GB, free: 9.117 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.397, allocations: 25.17 kB / 0.4973 GB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002053/0.3972, allocations: 84.59 kB / 0.4974 GB, free: 9.027 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.3974, allocations: 0.7064 MB / 0.4981 GB, free: 8.324 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3974, allocations: 0 / 0.4981 GB, free: 8.324 MB / 330.7 MB Notification: Performance of Templates: time 0.002234/0.3996, allocations: 488.9 kB / 0.4985 GB, free: 8.262 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches