Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.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.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [: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.001673/0.001672, allocations: 183.2 kB / 7.838 MB, free: 2.496 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.96/1.96, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001929/0.001928, allocations: 95.06 kB / 261.5 MB, free: 13.62 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.1539/0.1539, allocations: 12.59 MB / 322 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2648/0.4188, allocations: 56.49 MB / 378.5 MB, free: 75.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09139/0.5102, allocations: 50.37 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3771/0.8874, allocations: 76.58 MB / 0.4936 GB, free: 12.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/0.8878, allocations: 76.38 kB / 0.4937 GB, free: 12 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.004092/0.8919, allocations: 0.8799 MB / 0.4945 GB, free: 11.65 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.8919, allocations: 11.5 kB / 0.4945 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.064e-05/0.892, allocations: 7.75 kB / 0.4945 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002189/0.8923, allocations: 171.5 kB / 0.4947 GB, free: 11.45 MB / 330.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.8924, allocations: 36.16 kB / 0.4947 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.771e-05/0.8925, allocations: 3.844 kB / 0.4947 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001274/0.8926, allocations: 28.06 kB / 0.4948 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003653/0.893, allocations: 111.5 kB / 0.4949 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.893, allocations: 0 / 0.4949 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.8931, allocations: 0 / 0.4949 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.8931, allocations: 0 / 0.4949 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.8933, allocations: 137.8 kB / 0.495 GB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.8935, allocations: 131.7 kB / 0.4951 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.35e-05/0.8936, allocations: 22.05 kB / 0.4952 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.8937, allocations: 7.781 kB / 0.4952 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.8937, allocations: 39.53 kB / 0.4952 GB, free: 11.01 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 2.564e-06/0.8937, allocations: 0 / 0.4952 GB, free: 11.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002703/0.894, allocations: 55.44 kB / 0.4953 GB, free: 10.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.8941, allocations: 59.25 kB / 0.4953 GB, free: 10.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.598e-05/0.8942, allocations: 94.2 kB / 0.4954 GB, free: 10.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.8942, allocations: 25.7 kB / 0.4954 GB, free: 10.79 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.787e-05/0.8943, allocations: 85.39 kB / 0.4955 GB, free: 10.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.8943, allocations: 8.828 kB / 0.4955 GB, free: 10.7 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-06/0.8943, allocations: 0 / 0.4955 GB, free: 10.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.06e-05/0.8944, allocations: 312.2 kB / 0.4958 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.787e-05/0.8945, allocations: 7.219 kB / 0.4958 GB, free: 10.39 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.523e-05/0.8945, allocations: 44.16 kB / 0.4959 GB, free: 10.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.706e-05/0.8946, allocations: 12.77 kB / 0.4959 GB, free: 10.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.8946, allocations: 0 / 0.4959 GB, free: 10.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001632/0.8948, allocations: 63.81 kB / 0.4959 GB, free: 10.3 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.8948, allocations: 9.141 kB / 0.4959 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.8948, allocations: 0 / 0.4959 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.8949, allocations: 3.969 kB / 0.496 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.483e-05/0.895, allocations: 7.844 kB / 0.496 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.895, allocations: 1.547 kB / 0.496 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.105e-05/0.8951, allocations: 3.938 kB / 0.496 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.8951, allocations: 3.812 kB / 0.496 GB, free: 10.29 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.583e-05/0.8952, allocations: 112.2 kB / 0.4961 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.8953, allocations: 59.78 kB / 0.4961 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.887e-05/0.8954, allocations: 4.062 kB / 0.4961 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.8954, allocations: 0 / 0.4961 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.8954, allocations: 5.25 kB / 0.4961 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.8955, allocations: 0 / 0.4961 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001036/0.8956, allocations: 140.5 kB / 0.4963 GB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.8956, allocations: 96 / 0.4963 GB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.219e-05/0.8956, allocations: 3.938 kB / 0.4963 GB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.8956, allocations: 3.984 kB / 0.4963 GB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.8957, allocations: 4.703 kB / 0.4963 GB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.8957, allocations: 4 kB / 0.4963 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.8957, allocations: 3.875 kB / 0.4963 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001704/0.8959, allocations: 82.5 kB / 0.4964 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002399/0.8961, allocations: 459.7 kB / 0.4968 GB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.254e-05/0.8962, allocations: 86.05 kB / 0.4969 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.8963, allocations: 7.938 kB / 0.4969 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.8964, allocations: 5.125 kB / 0.4969 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.225e-05/0.8964, allocations: 4.688 kB / 0.4969 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.8964, allocations: 4.766 kB / 0.4969 GB, free: 9.355 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.247e-05/0.8965, allocations: 79.12 kB / 0.497 GB, free: 9.281 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001901/0.8984, allocations: 9 kB / 0.497 GB, free: 9.281 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: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0001685/0.8986, allocations: 98.47 kB / 0.4971 GB, free: 9.191 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001901/0.8988, allocations: 32.92 kB / 0.4971 GB, free: 9.184 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.8989, allocations: 0 / 0.4971 GB, free: 9.184 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.513e-06/0.8989, allocations: 0 / 0.4971 GB, free: 9.184 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009101/0.8998, allocations: 0.7053 MB / 0.4978 GB, free: 8.508 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003287/0.9002, allocations: 72.81 kB / 0.4979 GB, free: 8.438 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/0.9004, allocations: 0.7104 MB / 0.4986 GB, free: 7.723 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.9004, allocations: 0 / 0.4986 GB, free: 7.723 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1)