Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000881/0.0008809, allocations: 169 kB / 16.76 MB, free: 4.809 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.256/1.256, allocations: 205 MB / 222.5 MB, free: 9.133 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.0007018/0.0007018, allocations: 90.3 kB / 270.5 MB, free: 8.668 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.06457/0.06457, allocations: 12.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004208/0.0004208, allocations: 12 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06385/0.06429, allocations: 49.99 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.001666/0.06599, allocations: 1.594 MB / 443.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.06719, allocations: 0.952 MB / 444.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.06732, allocations: 11.94 kB / 444.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000464/0.0678, allocations: 131.7 kB / 444.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002126/0.06802, allocations: 99.69 kB / 444.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00041/0.06844, allocations: 171.6 kB / 444.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001674/0.06862, allocations: 171.5 kB / 444.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.606e-05/0.06871, allocations: 33.83 kB / 444.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.342e-05/0.0688, allocations: 55.72 kB / 444.9 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.507e-05/0.0689, allocations: 67.62 kB / 445 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.06892, allocations: 4 kB / 445 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.06904, allocations: 51.95 kB / 445 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.142e-05/0.06909, allocations: 31.84 kB / 445.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.47e-05/0.06916, allocations: 63.5 kB / 445.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.06931, allocations: 159.6 kB / 445.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.06932, allocations: 4 kB / 445.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.06933, allocations: 0 / 445.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.06934, allocations: 0 / 445.3 MB, free: 12.79 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005077/0.06985, allocations: 476.3 kB / 445.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.877e-05/0.06989, allocations: 12.03 kB / 445.8 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.704e-05/0.06994, allocations: 16.75 kB / 445.8 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/0.07018, allocations: 266.7 kB / 446 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.07021, allocations: 12.38 kB / 446 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.07023, allocations: 8.125 kB / 446 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002423/0.07048, allocations: 146.7 kB / 446.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.0705, allocations: 0 / 446.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.07051, allocations: 3.984 kB / 446.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.07052, allocations: 8 kB / 446.2 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.462e-05/0.07061, allocations: 31.92 kB / 446.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003339/0.07095, allocations: 358.4 kB / 446.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001614/0.07113, allocations: 107.9 kB / 446.7 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.179e-05/0.0712, allocations: 42.56 kB / 446.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.07123, allocations: 12 kB / 446.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001256/0.07136, allocations: 79.38 kB / 446.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.07137, allocations: 0 / 446.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002784/0.07166, allocations: 145.3 kB / 447 MB, free: 10.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.07171, allocations: 132.5 kB / 447.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/0.0719, allocations: 265.2 kB / 447.4 MB, free: 10.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.07192, allocations: 29.7 kB / 447.4 MB, free: 10.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.778e-05/0.07197, allocations: 116.1 kB / 447.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.072, allocations: 23.73 kB / 447.5 MB, free: 10.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.305e-05/0.07203, allocations: 17.72 kB / 447.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.227e-05/0.07207, allocations: 330.8 kB / 447.9 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.346e-05/0.07213, allocations: 23.98 kB / 447.9 MB, free: 9.879 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.363e-05/0.0722, allocations: 73.94 kB / 448 MB, free: 9.785 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.746e-05/0.07231, allocations: 72.22 kB / 448 MB, free: 9.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.07232, allocations: 0 / 448 MB, free: 9.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001611/0.07248, allocations: 121.4 kB / 448.1 MB, free: 9.574 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.07251, allocations: 4 kB / 448.1 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.07252, allocations: 4 kB / 448.2 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.07253, allocations: 0 / 448.2 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.767e-05/0.0726, allocations: 23.92 kB / 448.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.07262, allocations: 0 / 448.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.395e-05/0.07269, allocations: 11.84 kB / 448.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.0727, allocations: 8.125 kB / 448.2 MB, free: 9.523 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample.u,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 7.878e-05/0.07279, allocations: 137.8 kB / 448.3 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.113e-05/0.07285, allocations: 65.44 kB / 448.4 MB, free: 9.309 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.977e-05/0.0729, allocations: 25.7 kB / 448.4 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.07291, allocations: 0 / 448.4 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.07292, allocations: 4 kB / 448.4 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.07292, allocations: 3.938 kB / 448.4 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/0.07304, allocations: 221.5 kB / 448.6 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.07305, allocations: 4.375 kB / 448.6 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.342e-05/0.07308, allocations: 4 kB / 448.6 MB, free: 9.004 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.07309, allocations: 8 kB / 448.7 MB, free: 8.996 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.0731, allocations: 3.984 kB / 448.7 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.07311, allocations: 7.938 kB / 448.7 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.07312, allocations: 0 / 448.7 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/0.0733, allocations: 158.4 kB / 448.8 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.418e-05/0.07336, allocations: 104.9 kB / 448.9 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.07339, allocations: 8 kB / 448.9 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.811e-05/0.07346, allocations: 7.938 kB / 448.9 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.277e-05/0.07349, allocations: 7.984 kB / 448.9 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.07351, allocations: 7.938 kB / 449 MB, free: 8.652 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001251/0.07364, allocations: 192.5 kB / 449.1 MB, free: 8.465 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07365, allocations: 0 / 449.1 MB, free: 8.465 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002198/0.07387, allocations: 32 kB / 449.2 MB, free: 8.434 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007351/0.07462, allocations: 429.8 kB / 449.6 MB, free: 8.004 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001619/0.07479, allocations: 67.91 kB / 449.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.0748, allocations: 0 / 449.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.902e-05/0.07486, allocations: 31.92 kB / 449.7 MB, free: 7.906 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003479/0.07522, allocations: 48.88 kB / 449.7 MB, free: 7.859 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004089/0.07564, allocations: 376.2 kB / 450.1 MB, free: 7.453 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.07577, allocations: 0.7321 MB / 450.8 MB, free: 6.695 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.6e-05/0.07581, allocations: 23.38 kB / 450.9 MB, free: 6.672 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.07582, allocations: 4 kB / 450.9 MB, free: 6.668 MB / 298.7 MB Notification: Performance of Templates: time 0.003453/0.07928, allocations: 2.567 MB / 453.4 MB, free: 4.098 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches