Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001814/0.001814, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002074/0.002074, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.468/1.468, allocations: 227.7 MB / 247 MB, free: 10.35 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.00196/0.00196, allocations: 68.3 kB / 307.3 MB, free: 412 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1045, allocations: 50.54 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003825/0.1084, allocations: 1.918 MB / 359.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002315/0.1107, allocations: 1.309 MB / 361.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.1109, allocations: 7.938 kB / 361.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003148/0.1112, allocations: 63.67 kB / 361.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003952/0.1116, allocations: 139.4 kB / 361.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007144/0.1124, allocations: 231.2 kB / 361.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002537/0.1126, allocations: 179.5 kB / 361.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.1128, allocations: 41.64 kB / 361.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.1129, allocations: 79.64 kB / 361.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.1131, allocations: 87.61 kB / 361.9 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.785e-05/0.1131, allocations: 11.94 kB / 361.9 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.1133, allocations: 63.97 kB / 362 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.327e-05/0.1134, allocations: 55.77 kB / 362 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.1135, allocations: 87.41 kB / 362.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003616/0.1138, allocations: 247.4 kB / 362.4 MB, free: 9.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1139, allocations: 4 kB / 362.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1139, allocations: 0 / 362.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1139, allocations: 0 / 362.4 MB, free: 9.328 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008092/0.1147, allocations: 0.5428 MB / 362.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.1147, allocations: 12.02 kB / 362.9 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.108e-05/0.1148, allocations: 42.75 kB / 363 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.35e-05/0.1149, allocations: 32.56 kB / 363 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.1153, allocations: 287.5 kB / 363.3 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.1153, allocations: 16.3 kB / 363.3 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.1153, allocations: 11.94 kB / 363.3 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003886/0.1157, allocations: 172.4 kB / 363.5 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1158, allocations: 0 / 363.5 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.1158, allocations: 11.98 kB / 363.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.1158, allocations: 7.938 kB / 363.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.1159, allocations: 31.98 kB / 363.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005922/0.1165, allocations: 411.1 kB / 363.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.1168, allocations: 142.5 kB / 364.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.117, allocations: 63.36 kB / 364.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.117, allocations: 4 kB / 364.1 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.1173, allocations: 75.38 kB / 364.2 MB, free: 7.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.753e-06/0.1173, allocations: 0 / 364.2 MB, free: 7.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004534/0.1177, allocations: 173.3 kB / 364.4 MB, free: 7.062 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.1179, allocations: 187.9 kB / 364.6 MB, free: 6.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004078/0.1183, allocations: 350.9 kB / 364.9 MB, free: 6.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.1183, allocations: 25.7 kB / 364.9 MB, free: 6.449 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.1184, allocations: 132.3 kB / 365.1 MB, free: 6.312 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/0.1185, allocations: 23.73 kB / 365.1 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.322e-05/0.1186, allocations: 37.98 kB / 365.1 MB, free: 6.246 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1187, allocations: 334.8 kB / 365.4 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.12e-05/0.1188, allocations: 27.98 kB / 365.5 MB, free: 5.883 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.119, allocations: 96.08 kB / 365.6 MB, free: 5.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.1192, allocations: 109.9 kB / 365.7 MB, free: 5.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1192, allocations: 0 / 365.7 MB, free: 5.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000275/0.1195, allocations: 137.6 kB / 365.8 MB, free: 5.492 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.1195, allocations: 8 kB / 365.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1195, allocations: 0 / 365.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.1195, allocations: 7.938 kB / 365.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.1197, allocations: 31.92 kB / 365.9 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.1197, allocations: 7.938 kB / 365.9 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.745e-05/0.1198, allocations: 11.92 kB / 365.9 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.1198, allocations: 4.188 kB / 365.9 MB, free: 5.422 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001647/0.12, allocations: 153.8 kB / 366 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.1201, allocations: 81.34 kB / 366.1 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.422e-05/0.1202, allocations: 29.73 kB / 366.1 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1202, allocations: 0 / 366.1 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.1202, allocations: 4 kB / 366.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.1202, allocations: 7.875 kB / 366.1 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002804/0.1205, allocations: 253.4 kB / 366.4 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1205, allocations: 4.094 kB / 366.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.993e-05/0.1206, allocations: 15.98 kB / 366.4 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1206, allocations: 0 / 366.4 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.1206, allocations: 4 kB / 366.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1206, allocations: 0 / 366.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.1206, allocations: 4 kB / 366.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000357/0.121, allocations: 195.1 kB / 366.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.1211, allocations: 112.8 kB / 366.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.1211, allocations: 4 kB / 366.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.538e-05/0.1212, allocations: 11.98 kB / 366.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.909e-05/0.1213, allocations: 7.938 kB / 366.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.1213, allocations: 11.98 kB / 366.8 MB, free: 4.426 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003323/0.1217, allocations: 245.9 kB / 367 MB, free: 4.184 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1217, allocations: 0 / 367 MB, free: 4.184 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.122, allocations: 43.98 kB / 367 MB, free: 4.141 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.002059/0.124, allocations: 1.038 MB / 368.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002729/0.1243, allocations: 91.84 kB / 368.2 MB, free: 3.133 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1243, allocations: 0 / 368.2 MB, free: 3.133 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.802e-05/0.1244, allocations: 31.92 kB / 368.2 MB, free: 3.102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004794/0.1249, allocations: 94.03 kB / 368.3 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/0.1279, allocations: 2.311 MB / 370.6 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1476/0.2755, allocations: 0.7399 MB / 371.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001637/0.2757, allocations: 31.3 kB / 371.4 MB, free: 19.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.2758, allocations: 66.03 kB / 371.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2758, allocations: 0 / 371.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/0.3061, allocations: 5.566 MB / 377 MB, free: 18.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.964/8.271, allocations: 8.344 kB / 377 MB, free: 18.91 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1)