Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample",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.001237/0.001237, allocations: 175.1 kB / 16.12 MB, free: 5.695 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.202/1.202, allocations: 205 MB / 221.9 MB, free: 9.078 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.0007348/0.0007349, allocations: 93.67 kB / 269.9 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.06682/0.06682, allocations: 12.58 MB / 330.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003345/0.0003345, allocations: 12 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0735/0.07385, allocations: 49.97 MB / 441.1 MB, free: 16.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.001665/0.07555, allocations: 1.59 MB / 442.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.07678, allocations: 1.034 MB / 443.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.939e-05/0.07689, allocations: 7.938 kB / 443.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003013/0.0772, allocations: 59.78 kB / 443.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.0774, allocations: 83.72 kB / 443.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005224/0.07793, allocations: 207.6 kB / 444.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001553/0.07809, allocations: 151.6 kB / 444.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.455e-05/0.0782, allocations: 45.47 kB / 444.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.029e-05/0.07827, allocations: 59.7 kB / 444.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.661e-05/0.07836, allocations: 71.69 kB / 444.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.07838, allocations: 0 / 444.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.0785, allocations: 55.91 kB / 444.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.104e-05/0.07857, allocations: 47.83 kB / 444.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.507e-05/0.07863, allocations: 71.42 kB / 444.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.07882, allocations: 215.5 kB / 444.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.07884, allocations: 0 / 444.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.07884, allocations: 3.938 kB / 444.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.07885, allocations: 4 kB / 444.8 MB, free: 12.6 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.0004611/0.07932, allocations: 0.4884 MB / 445.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.07936, allocations: 8.031 kB / 445.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.0794, allocations: 42.73 kB / 445.4 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.258e-05/0.07944, allocations: 24.66 kB / 445.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.07968, allocations: 287.5 kB / 445.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.0797, allocations: 8.375 kB / 445.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.07972, allocations: 15.88 kB / 445.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.07998, allocations: 155.6 kB / 445.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.08, allocations: 0 / 445.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.08002, allocations: 0 / 445.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.08003, allocations: 4 kB / 445.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.341e-05/0.08013, allocations: 39.92 kB / 445.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003606/0.08049, allocations: 382.3 kB / 446.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.08073, allocations: 119.9 kB / 446.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.996e-05/0.08081, allocations: 46.56 kB / 446.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.08084, allocations: 3.938 kB / 446.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001685/0.08102, allocations: 83.38 kB / 446.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.08103, allocations: 0 / 446.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003169/0.08135, allocations: 141.4 kB / 446.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.08142, allocations: 170.1 kB / 446.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.08166, allocations: 334.5 kB / 447.1 MB, free: 9.992 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.08168, allocations: 29.95 kB / 447.2 MB, free: 9.957 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.785e-05/0.08175, allocations: 132.1 kB / 447.3 MB, free: 9.824 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.08177, allocations: 19.86 kB / 447.3 MB, free: 9.805 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.3e-05/0.0818, allocations: 17.72 kB / 447.3 MB, free: 9.781 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.127e-05/0.08186, allocations: 330.8 kB / 447.7 MB, free: 9.449 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.808e-05/0.08192, allocations: 20 kB / 447.7 MB, free: 9.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.584e-05/0.082, allocations: 90.84 kB / 447.8 MB, free: 9.316 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.08212, allocations: 84.47 kB / 447.8 MB, free: 9.219 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.08213, allocations: 0 / 447.8 MB, free: 9.219 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001747/0.08231, allocations: 129.3 kB / 448 MB, free: 9.086 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.08234, allocations: 8 kB / 448 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.08234, allocations: 0 / 448 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.08236, allocations: 0 / 448 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.872e-05/0.08245, allocations: 23.92 kB / 448 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.08247, allocations: 4 kB / 448 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.69e-05/0.08254, allocations: 15.78 kB / 448 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.08255, allocations: 4 kB / 448 MB, free: 9.031 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,table.y,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 8.755e-05/0.08265, allocations: 154.8 kB / 448.2 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.301e-05/0.08271, allocations: 69.34 kB / 448.2 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.295e-05/0.08276, allocations: 25.7 kB / 448.3 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.08277, allocations: 4 kB / 448.3 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.08278, allocations: 0 / 448.3 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.08279, allocations: 3.938 kB / 448.3 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.08292, allocations: 233.6 kB / 448.5 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.08293, allocations: 3.984 kB / 448.5 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.501e-05/0.08299, allocations: 15.97 kB / 448.5 MB, free: 8.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.083, allocations: 8.062 kB / 448.5 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.08301, allocations: 3.938 kB / 448.5 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.08302, allocations: 4 kB / 448.5 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.08302, allocations: 0 / 448.5 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001917/0.08322, allocations: 162.4 kB / 448.7 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.001e-05/0.08329, allocations: 112.9 kB / 448.8 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/0.08333, allocations: 11.94 kB / 448.8 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.035e-05/0.08339, allocations: 12.06 kB / 448.8 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.306e-05/0.08344, allocations: 11.92 kB / 448.8 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.08346, allocations: 4 kB / 448.8 MB, free: 8.102 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000151/0.08362, allocations: 245.9 kB / 449.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.08362, allocations: 0 / 449.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002158/0.08385, allocations: 31.94 kB / 449.1 MB, free: 7.828 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,table.y,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.001016/0.08487, allocations: 1.015 MB / 450.1 MB, free: 6.777 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00018/0.08506, allocations: 71.91 kB / 450.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.08507, allocations: 8.188 kB / 450.2 MB, free: 6.699 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.945e-05/0.08515, allocations: 31.92 kB / 450.2 MB, free: 6.668 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.08552, allocations: 60.48 kB / 450.3 MB, free: 6.609 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.08725, allocations: 2.219 MB / 452.5 MB, free: 4.273 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.0874, allocations: 0.7477 MB / 453.3 MB, free: 3.5 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.862e-05/0.08747, allocations: 21.55 kB / 453.3 MB, free: 3.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.88e-05/0.08755, allocations: 55.42 kB / 453.3 MB, free: 3.43 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.08755, allocations: 0 / 453.3 MB, free: 3.43 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2747/0.3623, allocations: 4.701 MB / 458 MB, free: 14.71 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002269/0.3625, allocations: 274.5 kB / 458.3 MB, free: 14.35 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.186/2.549, allocations: 0 / 458.3 MB, free: 14.35 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches