Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 107.7 kB / 16.92 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 189.6 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 47.05 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1086, allocations: 49.44 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004248/0.1129, allocations: 1.865 MB / 352 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001998/0.1149, allocations: 1.122 MB / 353.2 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.1151, allocations: 7.938 kB / 353.2 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003151/0.1154, allocations: 59.72 kB / 353.2 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003219/0.1158, allocations: 95.58 kB / 353.3 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000861/0.1166, allocations: 256.3 kB / 353.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002812/0.1169, allocations: 167.5 kB / 353.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.1171, allocations: 29.55 kB / 353.8 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1172, allocations: 67.7 kB / 353.8 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.1173, allocations: 83.62 kB / 353.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.1174, allocations: 8 kB / 353.9 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001568/0.1175, allocations: 59.95 kB / 354 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.1176, allocations: 51.78 kB / 354 MB, free: 476 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.754e-05/0.1178, allocations: 79.47 kB / 354.1 MB, free: 396 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003418/0.1181, allocations: 231.5 kB / 354.3 MB, free: 164 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1181, allocations: 3.938 kB / 354.3 MB, free: 160 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1181, allocations: 0 / 354.3 MB, free: 160 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.904e-06/0.1181, allocations: 0 / 354.3 MB, free: 160 kB / 286.1 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.0007757/0.1189, allocations: 0.5312 MB / 354.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.119, allocations: 12.03 kB / 354.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.762e-05/0.119, allocations: 34.75 kB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.333e-05/0.1191, allocations: 24.66 kB / 354.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.1195, allocations: 291.5 kB / 355.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.1195, allocations: 8.375 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.976e-05/0.1195, allocations: 7.938 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.1198, allocations: 155.6 kB / 355.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.1199, allocations: 0 / 355.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.1199, allocations: 0 / 355.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.1199, allocations: 4 kB / 355.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.12, allocations: 39.91 kB / 355.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005333/0.1206, allocations: 386.4 kB / 355.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000258/0.1208, allocations: 123.8 kB / 355.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.754e-05/0.1209, allocations: 50.56 kB / 356 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.121, allocations: 0 / 356 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.1212, allocations: 79.38 kB / 356 MB, free: 14.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.1212, allocations: 0 / 356 MB, free: 14.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004257/0.1217, allocations: 157.2 kB / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.628e-05/0.1218, allocations: 158.2 kB / 356.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003459/0.1221, allocations: 334.6 kB / 356.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.798e-05/0.1222, allocations: 29.7 kB / 356.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.452e-05/0.1223, allocations: 124.1 kB / 356.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.1223, allocations: 15.8 kB / 356.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.302e-05/0.1224, allocations: 25.97 kB / 356.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1225, allocations: 338.8 kB / 357.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.763e-05/0.1226, allocations: 23.98 kB / 357.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.1227, allocations: 86.78 kB / 357.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.1228, allocations: 88.16 kB / 357.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1229, allocations: 0 / 357.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002384/0.1231, allocations: 125.3 kB / 357.5 MB, free: 12.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.1231, allocations: 4 kB / 357.5 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.1231, allocations: 8.125 kB / 357.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.1232, allocations: 0 / 357.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.1233, allocations: 23.92 kB / 357.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.1233, allocations: 0 / 357.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.644e-05/0.1234, allocations: 11.88 kB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.1234, allocations: 7.984 kB / 357.6 MB, free: 12.55 MB / 302.1 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,subSample1.y,subSample1.u,sample1.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 0.0001369/0.1235, allocations: 163.2 kB / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.545e-05/0.1236, allocations: 69.34 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.289e-05/0.1237, allocations: 29.78 kB / 357.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1237, allocations: 0 / 357.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1237, allocations: 3.984 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1237, allocations: 7.938 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002096/0.1239, allocations: 233.6 kB / 358.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.1239, allocations: 4 kB / 358.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.496e-05/0.124, allocations: 8 kB / 358.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.124, allocations: 7.922 kB / 358.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.124, allocations: 4 kB / 358.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.124, allocations: 0 / 358.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.124, allocations: 0 / 358.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/0.1243, allocations: 170.4 kB / 358.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.039e-05/0.1244, allocations: 112.8 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.855e-05/0.1245, allocations: 7.984 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.499e-05/0.1245, allocations: 4.047 kB / 358.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.1246, allocations: 15.91 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.1246, allocations: 8 kB / 358.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002284/0.1248, allocations: 241.9 kB / 358.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1249, allocations: 0 / 358.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002623/0.1251, allocations: 36 kB / 358.7 MB, free: 11.34 MB / 302.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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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.00138/0.1265, allocations: 1.024 MB / 359.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002275/0.1267, allocations: 79.83 kB / 359.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1268, allocations: 0 / 359.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.122e-05/0.1268, allocations: 31.98 kB / 359.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003962/0.1272, allocations: 72.42 kB / 359.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.1299, allocations: 2.183 MB / 362.1 MB, free: 7.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.1302, allocations: 0.7436 MB / 362.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.553e-05/0.1303, allocations: 29.72 kB / 362.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.286e-05/0.1304, allocations: 55.41 kB / 362.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1304, allocations: 0 / 362.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03048/0.1609, allocations: 5.126 MB / 368 MB, free: 2.109 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.953/8.114, allocations: 10.53 kB / 368 MB, free: 2.102 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches