Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008228/0.0008228, allocations: 170.8 kB / 16.76 MB, free: 4.902 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.193/1.193, allocations: 205.4 MB / 222.9 MB, free: 8.934 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.0006737/0.0006737, allocations: 92.78 kB / 271.3 MB, free: 8.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05808/0.05808, allocations: 12.19 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003547, allocations: 16 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06393/0.0643, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC): time 0.001692/0.06603, allocations: 1.878 MB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000926/0.06698, allocations: 0.8118 MB / 445.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.0671, allocations: 11.88 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.06724, allocations: 35.66 kB / 445.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.854e-05/0.06733, allocations: 19.8 kB / 445.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.0678, allocations: 179.7 kB / 445.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.06801, allocations: 279.1 kB / 445.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001884/0.0682, allocations: 136.8 kB / 445.8 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.436e-05/0.06831, allocations: 83.5 kB / 445.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.06842, allocations: 83.5 kB / 446 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.242e-05/0.06845, allocations: 4 kB / 446 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.272e-05/0.06853, allocations: 43.95 kB / 446 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.749e-05/0.06859, allocations: 39.78 kB / 446.1 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.026e-05/0.06867, allocations: 121 kB / 446.2 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001607/0.06883, allocations: 223.7 kB / 446.4 MB, free: 12.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.06884, allocations: 3.984 kB / 446.4 MB, free: 12.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.06885, allocations: 0 / 446.4 MB, free: 12.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.06886, allocations: 0 / 446.4 MB, free: 12.59 MB / 298.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.0006143/0.06948, allocations: 0.5378 MB / 447 MB, free: 12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.06952, allocations: 8.031 kB / 447 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.224e-05/0.06957, allocations: 58.73 kB / 447 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.821e-05/0.06962, allocations: 32.56 kB / 447.1 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/0.06987, allocations: 299.2 kB / 447.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.0699, allocations: 16.81 kB / 447.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.06993, allocations: 20.12 kB / 447.4 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009425/0.07088, allocations: 0.6738 MB / 448.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.0709, allocations: 0 / 448.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.07093, allocations: 8 kB / 448.1 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.07094, allocations: 4 kB / 448.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000341/0.07128, allocations: 180.2 kB / 448.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003956/0.07169, allocations: 0.5413 MB / 448.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006674/0.07237, allocations: 0.579 MB / 449.4 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/0.07267, allocations: 236.3 kB / 449.6 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004411/0.07312, allocations: 0.5934 MB / 450.2 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.636e-05/0.07315, allocations: 42.5 kB / 450.2 MB, free: 8.355 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.552e-06/0.07316, allocations: 0 / 450.2 MB, free: 8.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.0008083/0.07397, allocations: 479.6 kB / 450.7 MB, free: 7.883 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.273e-05/0.07404, allocations: 207.9 kB / 450.9 MB, free: 7.637 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.07421, allocations: 237 kB / 451.1 MB, free: 7.398 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.07424, allocations: 33.7 kB / 451.2 MB, free: 7.359 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.104e-05/0.0743, allocations: 137.1 kB / 451.3 MB, free: 7.223 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.07433, allocations: 39.72 kB / 451.3 MB, free: 7.184 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.856e-06/0.07434, allocations: 4 kB / 451.3 MB, free: 7.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.713e-05/0.07439, allocations: 338.8 kB / 451.7 MB, free: 6.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.513e-05/0.07449, allocations: 68.83 kB / 451.7 MB, free: 6.773 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.07467, allocations: 340 kB / 452.1 MB, free: 6.305 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/0.07495, allocations: 428.4 kB / 452.5 MB, free: 5.754 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.07496, allocations: 7.938 kB / 452.5 MB, free: 5.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004295/0.07539, allocations: 388.8 kB / 452.9 MB, free: 5.359 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.07541, allocations: 8 kB / 452.9 MB, free: 5.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.07543, allocations: 12.88 kB / 452.9 MB, free: 5.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.07545, allocations: 12 kB / 452.9 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002011/0.07566, allocations: 91.84 kB / 453 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.07568, allocations: 23.86 kB / 453 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001719/0.07585, allocations: 39.69 kB / 453.1 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.07588, allocations: 24 kB / 453.1 MB, free: 5.152 MB / 298.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 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * 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.000115/0.076, allocations: 177.4 kB / 453.3 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004744/0.07648, allocations: 329.3 kB / 453.6 MB, free: 4.641 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004928/0.07698, allocations: 341.2 kB / 453.9 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.077, allocations: 8 kB / 453.9 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.07701, allocations: 3.938 kB / 453.9 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.07702, allocations: 0 / 453.9 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002369/0.07726, allocations: 301.2 kB / 454.2 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.07727, allocations: 4 kB / 454.2 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002488/0.07753, allocations: 91.81 kB / 454.3 MB, free: 3.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.07754, allocations: 4 kB / 454.3 MB, free: 3.848 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.07756, allocations: 8 kB / 454.3 MB, free: 3.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.07757, allocations: 0 / 454.3 MB, free: 3.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.07757, allocations: 11.94 kB / 454.3 MB, free: 3.828 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005439/0.07812, allocations: 0.5351 MB / 454.9 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.334e-05/0.07822, allocations: 116.6 kB / 455 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.754e-05/0.07827, allocations: 15.98 kB / 455 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.07849, allocations: 23.98 kB / 455 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.164e-05/0.07853, allocations: 11.88 kB / 455 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.07855, allocations: 19.94 kB / 455.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001026/0.07866, allocations: 168.5 kB / 455.2 MB, free: 2.902 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07867, allocations: 0 / 455.2 MB, free: 2.902 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003766/0.07905, allocations: 52 kB / 455.3 MB, free: 2.852 MB / 298.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 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * 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.001006/0.08006, allocations: 1.253 MB / 456.5 MB, free: 1.566 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004239/0.0805, allocations: 301.8 kB / 456.8 MB, free: 1.273 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.08051, allocations: 0 / 456.8 MB, free: 1.273 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.029e-05/0.08055, allocations: 15.98 kB / 456.8 MB, free: 1.258 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007882/0.08135, allocations: 282.1 kB / 457.1 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.08353, allocations: 1.793 MB / 458.9 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.08381, allocations: 0.7839 MB / 459.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.08394, allocations: 91.41 kB / 459.8 MB, free: 14.09 MB / 314.7 MB Notification: Performance of SimCode: time 2.1e-07/0.08394, allocations: 0 / 459.8 MB, free: 14.09 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.517/2.601, allocations: 4.16 MB / 463.9 MB, free: 9.926 MB / 314.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe 2>&1)