Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.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.WorkInProgress.Tests.TestSimulatedADC,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC",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.003242/0.003242, allocations: 191.4 kB / 7.847 MB, free: 2.469 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.904/1.904, 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.001393/0.001393, allocations: 99.72 kB / 261.5 MB, free: 13.61 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.1096/0.1096, allocations: 12.6 MB / 322 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2909/0.4006, allocations: 56.48 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.5288, allocations: 50.38 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.9659, allocations: 79.41 MB / 0.4964 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/0.9662, allocations: 60.72 kB / 0.4964 GB, free: 11.98 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0327/0.999, allocations: 6.355 MB / 0.5026 GB, free: 10.92 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.999, allocations: 7.812 kB / 0.5026 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.9992, allocations: 30.91 kB / 0.5027 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008936/1, allocations: 348.2 kB / 0.503 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/1, allocations: 7.656 kB / 0.503 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.599e-05/1, allocations: 15.42 kB / 0.503 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003886/1.001, allocations: 105.5 kB / 0.5031 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/1.002, allocations: 0.5267 MB / 0.5036 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/1.002, allocations: 0 / 0.5036 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.698e-05/1.002, allocations: 3.812 kB / 0.5036 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/1.002, allocations: 3.719 kB / 0.5036 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008757/1.003, allocations: 499.1 kB / 0.5041 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008227/1.004, allocations: 470.3 kB / 0.5046 GB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004025/1.004, allocations: 186.1 kB / 0.5047 GB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008246/1.005, allocations: 0.5918 MB / 0.5053 GB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/1.005, allocations: 40 kB / 0.5054 GB, free: 8.879 MB / 330.7 MB Notification: Performance of pre-optimization done (n=44): time 3.096e-06/1.005, allocations: 0 / 0.5054 GB, free: 8.879 MB / 330.7 MB Notification: Performance of matching and sorting (n=44): time 0.0009729/1.006, allocations: 262.9 kB / 0.5056 GB, free: 8.805 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/1.006, allocations: 173.7 kB / 0.5058 GB, free: 8.609 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/1.007, allocations: 191.2 kB / 0.506 GB, free: 8.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/1.007, allocations: 25.7 kB / 0.506 GB, free: 8.469 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.52e-05/1.007, allocations: 105.8 kB / 0.5061 GB, free: 8.375 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.89e-05/1.007, allocations: 33.69 kB / 0.5061 GB, free: 8.359 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/1.007, allocations: 0 / 0.5061 GB, free: 8.359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.779e-05/1.007, allocations: 344.8 kB / 0.5064 GB, free: 8.035 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/1.007, allocations: 46.06 kB / 0.5065 GB, free: 8.027 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/1.007, allocations: 320.4 kB / 0.5068 GB, free: 7.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/1.007, allocations: 108.2 kB / 0.5069 GB, free: 7.621 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/1.007, allocations: 3.844 kB / 0.5069 GB, free: 7.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007135/1.008, allocations: 317.6 kB / 0.5072 GB, free: 7.496 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/1.008, allocations: 3.844 kB / 0.5072 GB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/1.008, allocations: 7.688 kB / 0.5072 GB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.47e-05/1.008, allocations: 14.94 kB / 0.5072 GB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005164/1.009, allocations: 87.81 kB / 0.5073 GB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.91e-05/1.009, allocations: 26.83 kB / 0.5073 GB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003971/1.009, allocations: 35.06 kB / 0.5074 GB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/1.009, allocations: 19.03 kB / 0.5074 GB, free: 7.449 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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 0.0002035/1.01, allocations: 139.5 kB / 0.5075 GB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007254/1.01, allocations: 240.1 kB / 0.5077 GB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007359/1.011, allocations: 261.2 kB / 0.508 GB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/1.011, allocations: 7.891 kB / 0.508 GB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/1.011, allocations: 3.75 kB / 0.508 GB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/1.011, allocations: 4 kB / 0.508 GB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004529/1.012, allocations: 251.1 kB / 0.5083 GB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/1.012, allocations: 3.812 kB / 0.5083 GB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006263/1.012, allocations: 76.98 kB / 0.5083 GB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.151e-05/1.012, allocations: 3.812 kB / 0.5083 GB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/1.012, allocations: 7.297 kB / 0.5083 GB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.692e-06/1.012, allocations: 3.844 kB / 0.5083 GB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/1.012, allocations: 11.91 kB / 0.5084 GB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008073/1.013, allocations: 493.3 kB / 0.5088 GB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007581/1.014, allocations: 0.8614 MB / 0.5097 GB, free: 5.898 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.573e-05/1.014, allocations: 115.5 kB / 0.5098 GB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.179e-05/1.014, allocations: 7.828 kB / 0.5098 GB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000395/1.015, allocations: 15.36 kB / 0.5098 GB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.181e-05/1.015, allocations: 7.281 kB / 0.5098 GB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.789e-05/1.015, allocations: 7.531 kB / 0.5098 GB, free: 5.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002028/1.015, allocations: 160.7 kB / 0.51 GB, free: 5.684 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001602/1.016, allocations: 45.78 kB / 0.51 GB, free: 5.676 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002908/1.017, allocations: 121.5 kB / 0.5101 GB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007766/1.018, allocations: 225 kB / 0.5103 GB, free: 5.535 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/1.018, allocations: 384 / 0.5103 GB, free: 5.535 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.777e-05/1.018, allocations: 12.25 kB / 0.5104 GB, free: 5.531 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/1.019, allocations: 228.7 kB / 0.5106 GB, free: 5.461 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/1.021, allocations: 380 kB / 0.5109 GB, free: 5.273 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004686/1.022, allocations: 0.8158 MB / 0.5117 GB, free: 4.52 MB / 330.7 MB Notification: Performance of SimCode: time 1.673e-06/1.022, allocations: 0 / 0.5117 GB, free: 4.52 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe 2>&1)