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-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.WorkInProgress.Tests.TestSimulatedADC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009968/0.0009968, allocations: 175.4 kB / 16.45 MB, free: 5.684 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.303/1.303, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0007386/0.0007386, allocations: 90.3 kB / 270.9 MB, free: 8.359 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.06683/0.06683, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003675/0.0003676, allocations: 15.98 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.063/0.06338, allocations: 50.37 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC): time 0.001777/0.06519, allocations: 1.878 MB / 444.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.0663, allocations: 0.8313 MB / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.06651, allocations: 7.938 kB / 445.1 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.06666, allocations: 35.66 kB / 445.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.06677, allocations: 31.72 kB / 445.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005231/0.0673, allocations: 187.6 kB / 445.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002337/0.06754, allocations: 263.2 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.06772, allocations: 111.2 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.06783, allocations: 71.58 kB / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.778e-05/0.06794, allocations: 83.42 kB / 445.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.5e-05/0.06797, allocations: 8 kB / 445.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.235e-05/0.06806, allocations: 35.97 kB / 445.9 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.391e-05/0.06812, allocations: 43.77 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.445e-05/0.06817, allocations: 69.56 kB / 446 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.06835, allocations: 215.5 kB / 446.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.06836, allocations: 0 / 446.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.06836, allocations: 0 / 446.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.06838, allocations: 0 / 446.2 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.0006535/0.06903, allocations: 0.5418 MB / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.06907, allocations: 8.031 kB / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.266e-05/0.06914, allocations: 31.62 kB / 446.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.06942, allocations: 293.9 kB / 447.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.06945, allocations: 16.44 kB / 447.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.395e-05/0.06948, allocations: 16 kB / 447.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000984/0.07047, allocations: 0.6584 MB / 447.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.07049, allocations: 0 / 447.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.261e-05/0.07052, allocations: 12 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.07054, allocations: 4 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000374/0.07092, allocations: 180.2 kB / 448 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004273/0.07135, allocations: 0.5414 MB / 448.5 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007254/0.07209, allocations: 0.5796 MB / 449.1 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003191/0.07242, allocations: 244.2 kB / 449.3 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004599/0.07289, allocations: 0.5856 MB / 449.9 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.07292, allocations: 46.5 kB / 450 MB, free: 8.434 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.783e-06/0.07293, allocations: 0 / 450 MB, free: 8.434 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.000859/0.07379, allocations: 487.4 kB / 450.4 MB, free: 7.953 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.07387, allocations: 208.2 kB / 450.6 MB, free: 7.707 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.07405, allocations: 229 kB / 450.9 MB, free: 7.477 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.07408, allocations: 33.7 kB / 450.9 MB, free: 7.438 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.437e-05/0.07414, allocations: 133 kB / 451 MB, free: 7.305 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.07417, allocations: 27.88 kB / 451 MB, free: 7.277 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.005e-05/0.07419, allocations: 12 kB / 451.1 MB, free: 7.266 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.847e-05/0.07424, allocations: 334.8 kB / 451.4 MB, free: 6.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.07435, allocations: 68.83 kB / 451.4 MB, free: 6.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.07454, allocations: 344 kB / 451.8 MB, free: 6.391 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.07471, allocations: 123.8 kB / 451.9 MB, free: 6.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.07472, allocations: 7.938 kB / 451.9 MB, free: 6.262 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004644/0.07519, allocations: 396.7 kB / 452.3 MB, free: 5.867 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.07521, allocations: 8 kB / 452.3 MB, free: 5.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.07523, allocations: 12.91 kB / 452.3 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.07525, allocations: 12 kB / 452.3 MB, free: 5.836 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.07553, allocations: 99.83 kB / 452.4 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.07556, allocations: 15.94 kB / 452.4 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.07576, allocations: 43.61 kB / 452.5 MB, free: 5.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.07579, allocations: 24 kB / 452.5 MB, free: 5.656 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.0001261/0.07592, allocations: 173.4 kB / 452.7 MB, free: 5.477 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000506/0.07643, allocations: 330 kB / 453 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005081/0.07695, allocations: 340.1 kB / 453.3 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.07697, allocations: 4 kB / 453.3 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.07698, allocations: 8 kB / 453.3 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.07699, allocations: 3.984 kB / 453.4 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002375/0.07723, allocations: 297.2 kB / 453.6 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.07724, allocations: 8 kB / 453.6 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/0.07752, allocations: 87.88 kB / 453.7 MB, free: 4.359 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.07753, allocations: 0 / 453.7 MB, free: 4.359 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.07756, allocations: 11.95 kB / 453.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.07756, allocations: 4 kB / 453.8 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.07757, allocations: 0 / 453.8 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005612/0.07814, allocations: 0.5353 MB / 454.3 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-05/0.07819, allocations: 112.7 kB / 454.4 MB, free: 3.656 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.07823, allocations: 15.98 kB / 454.4 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.07846, allocations: 27.94 kB / 454.4 MB, free: 3.613 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.842e-05/0.07849, allocations: 11.98 kB / 454.5 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.07852, allocations: 12 kB / 454.5 MB, free: 3.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001137/0.07864, allocations: 172.4 kB / 454.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07864, allocations: 0 / 454.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003911/0.07904, allocations: 59.94 kB / 454.7 MB, free: 3.363 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.0001241/0.07917, allocations: 115.2 kB / 454.8 MB, free: 3.242 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004777/0.07966, allocations: 305.7 kB / 455.1 MB, free: 2.945 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.07967, allocations: 0 / 455.1 MB, free: 2.945 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.203e-05/0.07972, allocations: 8 kB / 455.1 MB, free: 2.938 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007935/0.08052, allocations: 274.1 kB / 455.4 MB, free: 2.664 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009214/0.08145, allocations: 0.6367 MB / 456 MB, free: 1.988 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001846/0.08165, allocations: 0.7881 MB / 456.8 MB, free: 1.176 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.759e-05/0.08171, allocations: 31.44 kB / 456.8 MB, free: 1.145 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.08172, allocations: 0 / 456.8 MB, free: 1.145 MB / 298.7 MB Notification: Performance of Templates: time 0.00547/0.0872, allocations: 3.649 MB / 460.5 MB, free: 13.49 MB / 314.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.makefile (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 & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe 2>&1)