Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.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.TestReplaceableSamplerHold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold",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.0008562/0.0008563, allocations: 174 kB / 16.77 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.171/1.171, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0006783/0.0006782, allocations: 93.41 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05933/0.05933, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.000369, allocations: 16 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06701/0.0674, allocations: 50.29 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.001987/0.06943, allocations: 2.27 MB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.07045, allocations: 0.8779 MB / 445.6 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.07061, allocations: 15.94 kB / 445.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.07077, allocations: 43.58 kB / 445.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.07096, allocations: 43.64 kB / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004562/0.07142, allocations: 191.6 kB / 445.9 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002298/0.07166, allocations: 342.9 kB / 446.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.07189, allocations: 188.6 kB / 446.5 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.072, allocations: 95.44 kB / 446.5 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.07211, allocations: 107.4 kB / 446.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.744e-05/0.07214, allocations: 8 kB / 446.7 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.589e-05/0.07222, allocations: 43.97 kB / 446.7 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.708e-05/0.07229, allocations: 55.69 kB / 446.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.161e-05/0.07238, allocations: 140.9 kB / 446.9 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.07256, allocations: 279.6 kB / 447.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.07258, allocations: 0 / 447.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.07258, allocations: 4 kB / 447.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.07259, allocations: 3.938 kB / 447.2 MB, free: 11.85 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0006975/0.07329, allocations: 0.5885 MB / 447.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.07334, allocations: 12.03 kB / 447.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.115e-05/0.07339, allocations: 62.72 kB / 447.8 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.941e-05/0.07345, allocations: 40.47 kB / 447.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/0.07372, allocations: 324 kB / 448.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.07375, allocations: 20.94 kB / 448.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.422e-05/0.07379, allocations: 28.12 kB / 448.2 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.07486, allocations: 0.7714 MB / 449 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.07489, allocations: 7.906 kB / 449 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.07491, allocations: 15.94 kB / 449 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.07493, allocations: 8 kB / 449 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004663/0.0754, allocations: 243.8 kB / 449.3 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005579/0.07596, allocations: 0.7721 MB / 450.1 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008064/0.07678, allocations: 0.6459 MB / 450.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003786/0.07717, allocations: 287.1 kB / 451 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000443/0.07763, allocations: 0.5856 MB / 451.6 MB, free: 7.027 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.07766, allocations: 38.56 kB / 451.6 MB, free: 6.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 1.593e-06/0.07766, allocations: 3.938 kB / 451.6 MB, free: 6.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.0009956/0.07867, allocations: 0.5643 MB / 452.2 MB, free: 6.406 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.796e-05/0.07876, allocations: 207.9 kB / 452.4 MB, free: 6.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/0.07894, allocations: 258.6 kB / 452.6 MB, free: 5.902 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.07897, allocations: 33.7 kB / 452.7 MB, free: 5.863 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.198e-05/0.07904, allocations: 152.8 kB / 452.8 MB, free: 5.711 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.095e-05/0.07907, allocations: 43.59 kB / 452.8 MB, free: 5.668 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.07909, allocations: 12 kB / 452.9 MB, free: 5.656 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.247e-05/0.07915, allocations: 346.8 kB / 453.2 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.07931, allocations: 89.11 kB / 453.3 MB, free: 5.219 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002439/0.07956, allocations: 438.9 kB / 453.7 MB, free: 4.621 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004299/0.08, allocations: 0.5398 MB / 454.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.08001, allocations: 8 kB / 454.3 MB, free: 3.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005991/0.08062, allocations: 0.489 MB / 454.8 MB, free: 3.414 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.08064, allocations: 8 kB / 454.8 MB, free: 3.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.08066, allocations: 12.91 kB / 454.8 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.08068, allocations: 20 kB / 454.8 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002601/0.08095, allocations: 131.8 kB / 454.9 MB, free: 3.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.08097, allocations: 15.94 kB / 454.9 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.08119, allocations: 67.45 kB / 455 MB, free: 3.164 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.08122, allocations: 28 kB / 455 MB, free: 3.137 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001288/0.08135, allocations: 186.5 kB / 455.2 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005064/0.08187, allocations: 357.9 kB / 455.6 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005516/0.08243, allocations: 373.2 kB / 455.9 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.08244, allocations: 7.938 kB / 455.9 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.08245, allocations: 4 kB / 455.9 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.08246, allocations: 7.984 kB / 455.9 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/0.08273, allocations: 333.1 kB / 456.3 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.08274, allocations: 4 kB / 456.3 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003366/0.08308, allocations: 107.8 kB / 456.4 MB, free: 1.715 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.08309, allocations: 4 kB / 456.4 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.08312, allocations: 12 kB / 456.4 MB, free: 1.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.08313, allocations: 4 kB / 456.4 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.08313, allocations: 4 kB / 456.4 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.08416, allocations: 0.8213 MB / 457.2 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-05/0.08422, allocations: 116.6 kB / 457.3 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.372e-05/0.08427, allocations: 16 kB / 457.4 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.08451, allocations: 32.05 kB / 457.4 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.364e-05/0.08455, allocations: 7.984 kB / 457.4 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/0.08458, allocations: 12 kB / 457.4 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001139/0.0847, allocations: 186 kB / 457.6 MB, free: 476 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.0847, allocations: 0 / 457.6 MB, free: 476 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004116/0.08512, allocations: 75.84 kB / 457.7 MB, free: 400 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * 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: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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.001375/0.0865, allocations: 1.383 MB / 459 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006043/0.08712, allocations: 373.6 kB / 459.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.08713, allocations: 4 kB / 459.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.709e-05/0.08723, allocations: 39.91 kB / 459.4 MB, free: 14.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009486/0.08819, allocations: 303.2 kB / 459.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002912/0.09111, allocations: 2.301 MB / 462 MB, free: 11.74 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.09141, allocations: 0.8158 MB / 462.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.09156, allocations: 111.4 kB / 463 MB, free: 10.79 MB / 314.7 MB Notification: Performance of SimCode: time 2.3e-07/0.09157, allocations: 0 / 463 MB, free: 10.79 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.665/2.756, allocations: 5.053 MB / 468 MB, free: 5.723 MB / 314.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe 2>&1)