Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001318/0.001318, allocations: 114.4 kB / 18.45 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001297/0.001297, allocations: 208 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.413/1.413, allocations: 227.7 MB / 247.9 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 63.89 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2638, allocations: 50.54 MB / 410.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004893/0.2687, allocations: 2.022 MB / 412.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002903/0.2716, allocations: 1.251 MB / 413.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.2717, allocations: 4 kB / 413.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006528/0.2724, allocations: 166.3 kB / 413.6 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004746/0.2728, allocations: 151.4 kB / 413.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007763/0.2736, allocations: 211.3 kB / 414 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004528/0.2741, allocations: 227.4 kB / 414.2 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.2742, allocations: 36.28 kB / 414.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.2744, allocations: 95.62 kB / 414.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.2746, allocations: 99.53 kB / 414.4 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.476e-05/0.2746, allocations: 12 kB / 414.4 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.2748, allocations: 67.91 kB / 414.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.162e-05/0.2748, allocations: 51.83 kB / 414.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.275, allocations: 87.41 kB / 414.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004691/0.2755, allocations: 266.8 kB / 414.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2755, allocations: 0 / 414.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2755, allocations: 0 / 414.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.2755, allocations: 4 kB / 414.9 MB, free: 12.71 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001081/0.2765, allocations: 0.5621 MB / 415.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.2766, allocations: 12.03 kB / 415.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.2767, allocations: 24.8 kB / 415.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005692/0.2773, allocations: 286.9 kB / 415.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.2773, allocations: 12.36 kB / 415.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.2773, allocations: 20.12 kB / 415.8 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007575/0.2781, allocations: 306.4 kB / 416.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.2781, allocations: 0 / 416.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.2781, allocations: 4 kB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.2781, allocations: 4 kB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002148/0.2783, allocations: 59.91 kB / 416.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007082/0.2791, allocations: 398.2 kB / 416.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.2795, allocations: 164 kB / 416.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.2797, allocations: 78.55 kB / 416.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.2797, allocations: 4.078 kB / 416.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.2799, allocations: 83.3 kB / 416.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 2.034e-06/0.2799, allocations: 3.938 kB / 416.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006943/0.2806, allocations: 221.4 kB / 417.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/0.2808, allocations: 148.5 kB / 417.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004506/0.2812, allocations: 280.9 kB / 417.5 MB, free: 9.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.766e-05/0.2813, allocations: 33.7 kB / 417.6 MB, free: 9.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.2814, allocations: 116.6 kB / 417.7 MB, free: 9.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.949e-05/0.2815, allocations: 31.83 kB / 417.7 MB, free: 9.621 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.2816, allocations: 49.94 kB / 417.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002604/0.2818, allocations: 342.8 kB / 418.1 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.2819, allocations: 36.45 kB / 418.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.2822, allocations: 174 kB / 418.3 MB, free: 8.957 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003564/0.2826, allocations: 203.2 kB / 418.5 MB, free: 8.703 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2826, allocations: 0 / 418.5 MB, free: 8.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005266/0.2831, allocations: 225.4 kB / 418.7 MB, free: 8.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.2831, allocations: 4 kB / 418.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.2831, allocations: 4 kB / 418.7 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.2831, allocations: 8 kB / 418.7 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.2833, allocations: 19.92 kB / 418.8 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.2833, allocations: 11.98 kB / 418.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.2834, allocations: 24.14 kB / 418.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.999e-05/0.2835, allocations: 8 kB / 418.8 MB, free: 8.398 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002348/0.2837, allocations: 180.1 kB / 419 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/0.284, allocations: 133.7 kB / 419.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.059e-05/0.2841, allocations: 33.7 kB / 419.1 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.2841, allocations: 4 kB / 419.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2841, allocations: 4.406 kB / 419.2 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.2841, allocations: 3.938 kB / 419.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003223/0.2844, allocations: 241.5 kB / 419.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2844, allocations: 0 / 419.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.841e-05/0.2845, allocations: 16 kB / 419.4 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.2845, allocations: 3.938 kB / 419.4 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.2845, allocations: 7.984 kB / 419.4 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.2845, allocations: 3.938 kB / 419.4 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2845, allocations: 0 / 419.4 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004966/0.285, allocations: 227.6 kB / 419.6 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.2852, allocations: 124.9 kB / 419.8 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.046e-05/0.2852, allocations: 8 kB / 419.8 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.994e-05/0.2853, allocations: 4 kB / 419.8 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.743e-05/0.2854, allocations: 11.98 kB / 419.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.797e-05/0.2854, allocations: 7.984 kB / 419.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000298/0.2857, allocations: 204.5 kB / 420 MB, free: 7.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2857, allocations: 0 / 420 MB, free: 7.098 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005106/0.2862, allocations: 47.88 kB / 420 MB, free: 7.051 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001979/0.2882, allocations: 429.5 kB / 420.5 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004755/0.2887, allocations: 135.1 kB / 420.6 MB, free: 6.652 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.2887, allocations: 1.062 kB / 420.6 MB, free: 6.652 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.482e-05/0.2888, allocations: 27.92 kB / 420.6 MB, free: 6.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006923/0.2895, allocations: 109.3 kB / 420.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009/0.2904, allocations: 396.6 kB / 421.1 MB, free: 6.105 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005533/0.2909, allocations: 0.7597 MB / 421.9 MB, free: 5.316 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.291, allocations: 34.7 kB / 421.9 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.018e-05/0.2911, allocations: 27.42 kB / 421.9 MB, free: 5.254 MB / 334.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2911, allocations: 3.938 kB / 421.9 MB, free: 5.25 MB / 334.1 MB Notification: Performance of Templates: time 0.009885/0.301, allocations: 3.052 MB / 425 MB, free: 2.219 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches