Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",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.0007952/0.0007953, allocations: 175.3 kB / 16.11 MB, free: 5.699 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.411/1.411, allocations: 205 MB / 221.9 MB, free: 9.148 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.0007195/0.0007192, allocations: 92.17 kB / 269.9 MB, free: 8.68 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.06547/0.06547, allocations: 12.57 MB / 330.3 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003806/0.0003805, allocations: 8 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08971/0.09011, allocations: 49.99 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.001951/0.0921, allocations: 1.664 MB / 442.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.09353, allocations: 1.112 MB / 443.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.09367, allocations: 7.938 kB / 443.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003071/0.09398, allocations: 67.78 kB / 444 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.09418, allocations: 83.67 kB / 444.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007146/0.09491, allocations: 239.5 kB / 444.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002252/0.09515, allocations: 207.4 kB / 444.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.09531, allocations: 41.94 kB / 444.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.0955, allocations: 71.64 kB / 444.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.09565, allocations: 99.53 kB / 444.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.994e-05/0.09569, allocations: 4 kB / 444.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.09584, allocations: 55.97 kB / 444.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.053e-05/0.09592, allocations: 59.75 kB / 444.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.811e-05/0.09601, allocations: 91.34 kB / 444.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002606/0.09627, allocations: 275 kB / 445.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.09629, allocations: 0 / 445.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.0963, allocations: 0 / 445.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.09631, allocations: 0 / 445.2 MB, free: 12.22 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007387/0.09706, allocations: 0.539 MB / 445.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.0971, allocations: 8.031 kB / 445.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.513e-05/0.09716, allocations: 46.73 kB / 445.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.309e-05/0.09723, allocations: 32.56 kB / 445.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.09756, allocations: 299.5 kB / 446.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.09759, allocations: 16.36 kB / 446.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.303e-05/0.09762, allocations: 15.94 kB / 446.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005241/0.09815, allocations: 319.2 kB / 446.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.09817, allocations: 3.938 kB / 446.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.0982, allocations: 8 kB / 446.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.77e-06/0.09821, allocations: 4 kB / 446.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001832/0.0984, allocations: 67.95 kB / 446.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005177/0.09892, allocations: 422.2 kB / 446.9 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003169/0.09925, allocations: 188 kB / 447.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.0994, allocations: 90.48 kB / 447.2 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.666e-05/0.09944, allocations: 23.86 kB / 447.2 MB, free: 9.945 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001545/0.0996, allocations: 75.39 kB / 447.3 MB, free: 9.859 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.375e-06/0.09962, allocations: 0 / 447.3 MB, free: 9.859 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004722/0.1001, allocations: 257.3 kB / 447.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.592e-05/0.1002, allocations: 166.2 kB / 447.7 MB, free: 9.402 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002819/0.1005, allocations: 350.8 kB / 448.1 MB, free: 9.051 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.1005, allocations: 33.7 kB / 448.1 MB, free: 9.012 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.581e-05/0.1006, allocations: 128.7 kB / 448.2 MB, free: 8.879 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.158e-05/0.1006, allocations: 31.69 kB / 448.3 MB, free: 8.848 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-05/0.1006, allocations: 29.7 kB / 448.3 MB, free: 8.812 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.153e-05/0.1007, allocations: 338.8 kB / 448.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.106e-05/0.1008, allocations: 44.39 kB / 448.7 MB, free: 8.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.1009, allocations: 186.9 kB / 448.8 MB, free: 8.184 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.1012, allocations: 211.2 kB / 449.1 MB, free: 7.922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.1012, allocations: 4 kB / 449.1 MB, free: 7.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000316/0.1015, allocations: 233.6 kB / 449.3 MB, free: 7.684 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.1015, allocations: 8 kB / 449.3 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.1015, allocations: 8.062 kB / 449.3 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.1016, allocations: 8 kB / 449.3 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.1017, allocations: 39.86 kB / 449.3 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.1017, allocations: 11.92 kB / 449.4 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.1018, allocations: 19.84 kB / 449.4 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.1018, allocations: 12 kB / 449.4 MB, free: 7.578 MB / 298.7 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.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],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,sample.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.0001477/0.102, allocations: 185.2 kB / 449.6 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.1022, allocations: 141.7 kB / 449.7 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.855e-05/0.1022, allocations: 33.73 kB / 449.7 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1023, allocations: 11.97 kB / 449.8 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1023, allocations: 96 / 449.8 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1023, allocations: 3.938 kB / 449.8 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.1025, allocations: 265.4 kB / 450 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1025, allocations: 0 / 450 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.1026, allocations: 27.92 kB / 450 MB, free: 6.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.1026, allocations: 11.94 kB / 450.1 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.1026, allocations: 7.984 kB / 450.1 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1026, allocations: 7.938 kB / 450.1 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1026, allocations: 0 / 450.1 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003197/0.103, allocations: 242.3 kB / 450.3 MB, free: 6.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.221e-05/0.1031, allocations: 120.7 kB / 450.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.085e-05/0.1031, allocations: 12 kB / 450.4 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.157e-05/0.1032, allocations: 8 kB / 450.4 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.1033, allocations: 15.92 kB / 450.5 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.1033, allocations: 11.98 kB / 450.5 MB, free: 6.387 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002023/0.1035, allocations: 245.9 kB / 450.7 MB, free: 6.148 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1035, allocations: 0 / 450.7 MB, free: 6.148 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003044/0.1038, allocations: 47.98 kB / 450.8 MB, free: 6.102 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.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.001363/0.1052, allocations: 1.187 MB / 451.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002692/0.1055, allocations: 152.1 kB / 452.1 MB, free: 4.734 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.676e-06/0.1055, allocations: 0 / 452.1 MB, free: 4.734 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.075e-05/0.1056, allocations: 35.92 kB / 452.1 MB, free: 4.699 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004561/0.106, allocations: 124.7 kB / 452.3 MB, free: 4.574 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.1078, allocations: 1.537 MB / 453.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/0.108, allocations: 0.7716 MB / 454.6 MB, free: 2.129 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.709e-05/0.1081, allocations: 38.5 kB / 454.6 MB, free: 2.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.67e-05/0.1082, allocations: 75.41 kB / 454.7 MB, free: 2.016 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1082, allocations: 4 kB / 454.7 MB, free: 2.012 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1245/0.2327, allocations: 5.648 MB / 460.3 MB, free: 12.35 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/0.233, allocations: 269.2 kB / 460.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/2.257, allocations: 0 / 460.6 MB, free: 11.98 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches