Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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-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.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009485/0.0009486, allocations: 169.3 kB / 16.76 MB, free: 5.035 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.262/1.262, allocations: 205 MB / 222.5 MB, free: 9.07 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.0007654/0.0007655, allocations: 100.5 kB / 270.5 MB, free: 8.66 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.08756/0.08756, allocations: 12.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003583/0.0003584, allocations: 12.38 kB / 391.7 MB, free: 66.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07807/0.07845, allocations: 49.98 MB / 441.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.002405/0.08089, allocations: 2.397 MB / 444.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.08235, allocations: 0.9281 MB / 445 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/0.08264, allocations: 11.94 kB / 445 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.08289, allocations: 47.58 kB / 445.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002699/0.08317, allocations: 51.64 kB / 445.1 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006066/0.08378, allocations: 203.7 kB / 445.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003134/0.0841, allocations: 354.9 kB / 445.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.08436, allocations: 180.6 kB / 445.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.08449, allocations: 99.45 kB / 445.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.08463, allocations: 115.2 kB / 446.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.549e-05/0.08467, allocations: 8 kB / 446.1 MB, free: 12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.825e-05/0.08478, allocations: 47.97 kB / 446.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.629e-05/0.08487, allocations: 51.75 kB / 446.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.08499, allocations: 127 kB / 446.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002761/0.08528, allocations: 283.5 kB / 446.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.08529, allocations: 0 / 446.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.0853, allocations: 3.938 kB / 446.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.08532, allocations: 0 / 446.6 MB, free: 11.5 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.00107/0.08639, allocations: 0.5924 MB / 447.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.08645, allocations: 12.03 kB / 447.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.0866, allocations: 40.47 kB / 447.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004697/0.08707, allocations: 320 kB / 447.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.716e-05/0.08712, allocations: 24.94 kB / 447.5 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.08718, allocations: 24.38 kB / 447.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.08844, allocations: 0.783 MB / 448.3 MB, free: 9.578 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.08847, allocations: 11.91 kB / 448.4 MB, free: 9.566 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.08851, allocations: 8 kB / 448.4 MB, free: 9.559 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.08852, allocations: 8 kB / 448.4 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005105/0.08904, allocations: 243.8 kB / 448.6 MB, free: 9.312 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007361/0.08978, allocations: 0.7721 MB / 449.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008835/0.09068, allocations: 0.6537 MB / 450 MB, free: 7.738 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003682/0.09106, allocations: 279.2 kB / 450.3 MB, free: 7.453 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004786/0.09155, allocations: 0.5973 MB / 450.9 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.09159, allocations: 38.56 kB / 450.9 MB, free: 6.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 2.044e-06/0.09159, allocations: 0 / 450.9 MB, free: 6.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.001028/0.09263, allocations: 0.568 MB / 451.5 MB, free: 6.105 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.09271, allocations: 207.9 kB / 451.7 MB, free: 5.859 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.0929, allocations: 262.6 kB / 452 MB, free: 5.598 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.09293, allocations: 33.7 kB / 452 MB, free: 5.559 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.589e-05/0.09301, allocations: 148.8 kB / 452.2 MB, free: 5.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.852e-05/0.09305, allocations: 51.64 kB / 452.2 MB, free: 5.359 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.09309, allocations: 49.62 kB / 452.3 MB, free: 5.305 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.355e-05/0.09315, allocations: 346.8 kB / 452.6 MB, free: 4.957 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.09332, allocations: 93.06 kB / 452.7 MB, free: 4.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.09358, allocations: 435 kB / 453.1 MB, free: 4.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000498/0.09409, allocations: 0.5399 MB / 453.6 MB, free: 3.566 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.09411, allocations: 7.938 kB / 453.7 MB, free: 3.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006487/0.09477, allocations: 0.4928 MB / 454.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.09479, allocations: 8.969 kB / 454.2 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.09481, allocations: 12 kB / 454.2 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.09484, allocations: 20 kB / 454.2 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/0.09512, allocations: 123.8 kB / 454.3 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.09514, allocations: 19.92 kB / 454.3 MB, free: 2.879 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.09539, allocations: 59.58 kB / 454.4 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.09542, allocations: 28 kB / 454.4 MB, free: 2.793 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 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.09556, allocations: 194.8 kB / 454.6 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005252/0.09609, allocations: 365.8 kB / 455 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005649/0.09667, allocations: 372.7 kB / 455.3 MB, free: 1.859 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.09668, allocations: 8 kB / 455.3 MB, free: 1.852 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.0967, allocations: 8 kB / 455.3 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.09671, allocations: 7.984 kB / 455.3 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002698/0.09698, allocations: 333.1 kB / 455.7 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.097, allocations: 0 / 455.7 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003393/0.09734, allocations: 111.8 kB / 455.8 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.09736, allocations: 4 kB / 455.8 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.09738, allocations: 7.984 kB / 455.8 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.726e-06/0.09739, allocations: 7.938 kB / 455.8 MB, free: 1.332 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.0974, allocations: 4 kB / 455.8 MB, free: 1.328 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.09844, allocations: 0.8213 MB / 456.6 MB, free: 492 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.0985, allocations: 116.6 kB / 456.7 MB, free: 356 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.77e-05/0.09855, allocations: 15.98 kB / 456.8 MB, free: 340 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.09879, allocations: 36.05 kB / 456.8 MB, free: 304 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.588e-05/0.09884, allocations: 7.984 kB / 456.8 MB, free: 296 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.09887, allocations: 16 kB / 456.8 MB, free: 280 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001166/0.09899, allocations: 178 kB / 457 MB, free: 104 kB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.09899, allocations: 0 / 457 MB, free: 104 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004412/0.09944, allocations: 83.83 kB / 457.1 MB, free: 20 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001879/0.09964, allocations: 119.2 kB / 457.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006794/0.1003, allocations: 373.3 kB / 457.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1003, allocations: 384 / 457.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.1004, allocations: 39.91 kB / 457.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009876/0.1014, allocations: 318.3 kB / 457.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.1029, allocations: 0.8909 MB / 458.8 MB, free: 14.24 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.1033, allocations: 0.8238 MB / 459.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.474e-05/0.1034, allocations: 31.44 kB / 459.6 MB, free: 13.36 MB / 314.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1034, allocations: 7.938 kB / 459.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of Templates: time 0.007303/0.1107, allocations: 4.414 MB / 464.1 MB, free: 8.941 MB / 314.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe 2>&1)