Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.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.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") [: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.00112/0.00112, allocations: 186.3 kB / 7.842 MB, free: 2.477 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.186/1.186, allocations: 205.2 MB / 213.5 MB, free: 13.84 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.0008503/0.0008504, allocations: 95.36 kB / 261.5 MB, free: 13.53 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.07339/0.07339, allocations: 12.59 MB / 322 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.642e-06/6.732e-06, allocations: 0 / 378.4 MB, free: 75.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08929/0.08932, allocations: 50.37 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3002/0.3896, allocations: 76.99 MB / 0.4939 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001739/0.3898, allocations: 72 kB / 0.494 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002589/0.3924, allocations: 0.8987 MB / 0.4949 GB, free: 11.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.3925, allocations: 0 / 0.4949 GB, free: 11.71 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0002257/0.3927, allocations: 343.5 kB / 0.4952 GB, free: 11.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.3927, allocations: 7.656 kB / 0.4952 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.983e-05/0.3928, allocations: 16.95 kB / 0.4952 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.3929, allocations: 182.3 kB / 0.4954 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.3929, allocations: 5.281 kB / 0.4954 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.497e-06/0.393, allocations: 3.906 kB / 0.4954 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.747e-05/0.393, allocations: 21.97 kB / 0.4954 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001805/0.3932, allocations: 106.2 kB / 0.4955 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.3932, allocations: 3.844 kB / 0.4955 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.3933, allocations: 4 kB / 0.4955 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.3933, allocations: 0 / 0.4955 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.778e-05/0.3934, allocations: 145.7 kB / 0.4957 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.3935, allocations: 65.2 kB / 0.4957 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.631e-05/0.3935, allocations: 35.64 kB / 0.4958 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-06/0.3936, allocations: 0 / 0.4958 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.3936, allocations: 34.56 kB / 0.4958 GB, free: 10.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 8.42e-07/0.3936, allocations: 0 / 0.4958 GB, free: 10.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001416/0.3937, allocations: 63.91 kB / 0.4958 GB, free: 10.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.3938, allocations: 55.31 kB / 0.4959 GB, free: 10.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.152e-05/0.3939, allocations: 118.4 kB / 0.496 GB, free: 10.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.794e-06/0.3939, allocations: 29.64 kB / 0.496 GB, free: 10.63 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.656e-05/0.3939, allocations: 88.42 kB / 0.4961 GB, free: 10.54 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.304e-05/0.3939, allocations: 9.062 kB / 0.4961 GB, free: 10.54 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-06/0.3939, allocations: 4 kB / 0.4961 GB, free: 10.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.446e-05/0.394, allocations: 315.2 kB / 0.4964 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.409e-05/0.394, allocations: 14.53 kB / 0.4965 GB, free: 10.22 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.058e-05/0.394, allocations: 51.22 kB / 0.4965 GB, free: 10.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.591e-05/0.3941, allocations: 18.08 kB / 0.4965 GB, free: 10.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.3941, allocations: 0 / 0.4965 GB, free: 10.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.106e-05/0.3942, allocations: 75.55 kB / 0.4966 GB, free: 10.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.777e-06/0.3942, allocations: 11.97 kB / 0.4966 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.3942, allocations: 3.812 kB / 0.4966 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.3942, allocations: 9.156 kB / 0.4966 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.399e-05/0.3942, allocations: 0 / 0.4966 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.3942, allocations: 5.312 kB / 0.4966 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.299e-05/0.3943, allocations: 0 / 0.4966 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.3943, allocations: 3.906 kB / 0.4966 GB, free: 10.1 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (integerConstant.y,xor.y,xor.u2,xor.u1,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 5.53e-05/0.3943, allocations: 111.2 kB / 0.4967 GB, free: 9.988 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.146e-05/0.3944, allocations: 70.42 kB / 0.4968 GB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.518e-05/0.3945, allocations: 16.91 kB / 0.4968 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3945, allocations: 0 / 0.4968 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3945, allocations: 0 / 0.4968 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3945, allocations: 0 / 0.4968 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.819e-05/0.3945, allocations: 144.9 kB / 0.4969 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3946, allocations: 0 / 0.4969 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.18e-05/0.3946, allocations: 1.547 kB / 0.4969 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3946, allocations: 3.781 kB / 0.497 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.3946, allocations: 0 / 0.497 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.3946, allocations: 0 / 0.497 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3946, allocations: 4 kB / 0.497 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.919e-05/0.3947, allocations: 96.48 kB / 0.497 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.3948, allocations: 96.3 kB / 0.4971 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.3948, allocations: 0 / 0.4971 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.39e-05/0.3948, allocations: 0 / 0.4971 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.635e-06/0.3948, allocations: 1.5 kB / 0.4971 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.3948, allocations: 3.844 kB / 0.4971 GB, free: 9.609 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.87e-05/0.3949, allocations: 102.9 kB / 0.4972 GB, free: 9.531 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001957/0.3951, allocations: 11.5 kB / 0.4973 GB, free: 9.527 MB / 330.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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,xor.u1,xor.u2,xor.y,integerConstant.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.681e-05/0.3951, allocations: 98.42 kB / 0.4973 GB, free: 9.434 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.619e-05/0.3952, allocations: 35.19 kB / 0.4974 GB, free: 9.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.3952, allocations: 3.938 kB / 0.4974 GB, free: 9.426 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.5e-07/0.3952, allocations: 3.75 kB / 0.4974 GB, free: 9.426 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.3954, allocations: 41.27 kB / 0.4974 GB, free: 9.414 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00021/0.3957, allocations: 99.7 kB / 0.4975 GB, free: 9.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.3958, allocations: 0.7101 MB / 0.4982 GB, free: 8.633 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3958, allocations: 0 / 0.4982 GB, free: 8.633 MB / 330.7 MB Notification: Performance of Templates: time 0.00249/0.3983, allocations: 0.6298 MB / 0.4988 GB, free: 8.559 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches