Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",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.001913/0.001917, allocations: 191 kB / 7.847 MB, free: 2.488 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.909/1.909, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.001288/0.001288, allocations: 94.72 kB / 261.5 MB, free: 13.63 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.1039/0.1039, allocations: 12.59 MB / 322 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2723/0.3762, allocations: 56.49 MB / 378.5 MB, free: 75.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09329/0.4695, allocations: 50.38 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3279/0.7975, allocations: 77.72 MB / 0.4947 GB, free: 12.11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.7978, allocations: 81.33 kB / 0.4948 GB, free: 12.11 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.00726/0.8051, allocations: 1.526 MB / 0.4963 GB, free: 11.67 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.8051, allocations: 11.69 kB / 0.4963 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.129e-05/0.8052, allocations: 15.62 kB / 0.4963 GB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.8054, allocations: 184.1 kB / 0.4965 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.8054, allocations: 3.906 kB / 0.4965 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.8055, allocations: 0 / 0.4965 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001137/0.8056, allocations: 21.59 kB / 0.4965 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.8059, allocations: 121.1 kB / 0.4966 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.8059, allocations: 7.844 kB / 0.4966 GB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.8059, allocations: 3.75 kB / 0.4966 GB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.8059, allocations: 0 / 0.4966 GB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000447/0.8064, allocations: 334 kB / 0.4969 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.8066, allocations: 158.7 kB / 0.4971 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.162e-05/0.8067, allocations: 32.45 kB / 0.4971 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.644e-05/0.8068, allocations: 9.297 kB / 0.4971 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.8069, allocations: 30.56 kB / 0.4972 GB, free: 10.8 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 3.116e-06/0.8069, allocations: 0 / 0.4972 GB, free: 10.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004185/0.8073, allocations: 69.11 kB / 0.4972 GB, free: 10.76 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.8074, allocations: 106.7 kB / 0.4973 GB, free: 10.63 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.8076, allocations: 125.9 kB / 0.4975 GB, free: 10.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.8077, allocations: 33.7 kB / 0.4975 GB, free: 10.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.681e-05/0.8077, allocations: 85.56 kB / 0.4976 GB, free: 10.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.193e-05/0.8077, allocations: 9.469 kB / 0.4976 GB, free: 10.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-06/0.8078, allocations: 0 / 0.4976 GB, free: 10.41 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.412e-05/0.8078, allocations: 316.4 kB / 0.4979 GB, free: 10.1 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.154e-05/0.8079, allocations: 7.531 kB / 0.4979 GB, free: 10.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.701e-05/0.808, allocations: 37.08 kB / 0.4979 GB, free: 10.06 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.58e-05/0.808, allocations: 17.25 kB / 0.4979 GB, free: 10.05 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.8081, allocations: 0 / 0.4979 GB, free: 10.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002453/0.8083, allocations: 70.23 kB / 0.498 GB, free: 10.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.8084, allocations: 7.906 kB / 0.498 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.8084, allocations: 8.516 kB / 0.498 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.8084, allocations: 4.125 kB / 0.498 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.8086, allocations: 10.44 kB / 0.498 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.8086, allocations: 7.75 kB / 0.498 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.528e-05/0.8087, allocations: 8.891 kB / 0.498 GB, free: 9.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.8087, allocations: 3.844 kB / 0.4981 GB, free: 9.996 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: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * 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 6.723e-05/0.8088, allocations: 101.7 kB / 0.4982 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.8089, allocations: 56.06 kB / 0.4982 GB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.965e-05/0.809, allocations: 13.11 kB / 0.4982 GB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.809, allocations: 3.812 kB / 0.4982 GB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.809, allocations: 3.906 kB / 0.4982 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.809, allocations: 0.7969 kB / 0.4982 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.8093, allocations: 151 kB / 0.4984 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.8093, allocations: 0 / 0.4984 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.741e-05/0.8094, allocations: 10.45 kB / 0.4984 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.8094, allocations: 3.844 kB / 0.4984 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.8094, allocations: 0.75 kB / 0.4984 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.145e-06/0.8095, allocations: 0 / 0.4984 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.8095, allocations: 7.812 kB / 0.4984 GB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001882/0.8097, allocations: 275.6 kB / 0.4987 GB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002386/0.8099, allocations: 0.6301 MB / 0.4993 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.8101, allocations: 92.67 kB / 0.4994 GB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.8101, allocations: 4.906 kB / 0.4994 GB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.8103, allocations: 4.328 kB / 0.4994 GB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.104e-05/0.8103, allocations: 16.95 kB / 0.4994 GB, free: 8.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.8104, allocations: 4.578 kB / 0.4994 GB, free: 8.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.834e-05/0.8105, allocations: 102.3 kB / 0.4995 GB, free: 8.605 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001177/0.8116, allocations: 8.328 kB / 0.4995 GB, free: 8.605 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001215/0.8118, allocations: 102.4 kB / 0.4996 GB, free: 8.512 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001522/0.8119, allocations: 29.22 kB / 0.4996 GB, free: 8.508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.812, allocations: 0 / 0.4996 GB, free: 8.508 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.017e-05/0.812, allocations: 15.75 kB / 0.4996 GB, free: 8.504 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006258/0.8126, allocations: 17.83 kB / 0.4996 GB, free: 8.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005507/0.8132, allocations: 116.7 kB / 0.4998 GB, free: 8.402 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002286/0.8135, allocations: 0.7185 MB / 0.5005 GB, free: 7.699 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.8135, allocations: 0 / 0.5005 GB, free: 7.699 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1)