Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",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.001171/0.001171, allocations: 93.27 kB / 16.3 MB, free: 6.133 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.001281/0.001281, allocations: 178.8 kB / 17.2 MB, free: 6.016 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.507/1.507, allocations: 223.2 MB / 241.1 MB, free: 14.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002701/0.0002701, allocations: 15.98 kB / 300.8 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1084, allocations: 50.41 MB / 351.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.001832/0.1103, allocations: 1.213 MB / 352.4 MB, free: 2.492 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003376/0.1107, allocations: 140.3 kB / 352.6 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.449e-05/0.1107, allocations: 3.938 kB / 352.6 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.871e-05/0.1108, allocations: 3.984 kB / 352.6 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.1109, allocations: 4 kB / 352.6 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.1112, allocations: 39.78 kB / 352.6 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.947e-05/0.1113, allocations: 19.97 kB / 352.7 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.361e-05/0.1114, allocations: 19.97 kB / 352.7 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.94e-05/0.1114, allocations: 11.92 kB / 352.7 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.661e-05/0.1114, allocations: 15.88 kB / 352.7 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.1115, allocations: 4 kB / 352.7 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.032e-05/0.1115, allocations: 0 / 352.7 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.331e-05/0.1115, allocations: 7.984 kB / 352.7 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.431e-05/0.1116, allocations: 37.64 kB / 352.7 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.653e-05/0.1116, allocations: 23.95 kB / 352.8 MB, free: 2.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1117, allocations: 0 / 352.8 MB, free: 2.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1117, allocations: 0 / 352.8 MB, free: 2.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.1117, allocations: 0 / 352.8 MB, free: 2.16 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005564/0.1122, allocations: 367.4 kB / 353.1 MB, free: 1.754 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.1123, allocations: 12.03 kB / 353.1 MB, free: 1.742 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.666e-05/0.1123, allocations: 38.55 kB / 353.2 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.806e-05/0.1124, allocations: 11.84 kB / 353.2 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.1126, allocations: 186.8 kB / 353.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.1127, allocations: 8 kB / 353.4 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-06/0.1127, allocations: 0 / 353.4 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.113, allocations: 117 kB / 353.5 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.113, allocations: 0 / 353.5 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.113, allocations: 3.953 kB / 353.5 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.113, allocations: 0 / 353.5 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.457e-05/0.1131, allocations: 31.92 kB / 353.5 MB, free: 1.285 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003913/0.1135, allocations: 261.7 kB / 353.8 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.1138, allocations: 138.2 kB / 353.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.1138, allocations: 0 / 353.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.1138, allocations: 38.58 kB / 354 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.1138, allocations: 0 / 354 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002707/0.1141, allocations: 81.69 kB / 354 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.1142, allocations: 85.23 kB / 354.1 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.1143, allocations: 138 kB / 354.3 MB, free: 432 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.1143, allocations: 25.7 kB / 354.3 MB, free: 400 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.981e-05/0.1144, allocations: 84.14 kB / 354.4 MB, free: 312 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.786e-06/0.1144, allocations: 0 / 354.4 MB, free: 312 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.384e-06/0.1144, allocations: 0 / 354.4 MB, free: 312 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1145, allocations: 322.8 kB / 354.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.129e-05/0.1146, allocations: 12 kB / 354.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.8e-05/0.1147, allocations: 31.42 kB / 354.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.51e-05/0.1147, allocations: 19.92 kB / 354.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1147, allocations: 0 / 354.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001194/0.1148, allocations: 69.53 kB / 354.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1149, allocations: 11.95 kB / 354.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1149, allocations: 0 / 354.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.1149, allocations: 0 / 354.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.37e-05/0.115, allocations: 11.98 kB / 354.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.115, allocations: 4 kB / 354.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.781e-05/0.115, allocations: 16.06 kB / 354.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.115, allocations: 3.938 kB / 354.9 MB, free: 15.79 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.647e-05/0.1151, allocations: 121.8 kB / 355 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.595e-05/0.1152, allocations: 45.55 kB / 355 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.457e-05/0.1152, allocations: 20.12 kB / 355 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1153, allocations: 336 / 355 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1153, allocations: 4 kB / 355 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1153, allocations: 0 / 355 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001574/0.1154, allocations: 165.7 kB / 355.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1154, allocations: 4 kB / 355.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.062e-05/0.1155, allocations: 15.98 kB / 355.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.1155, allocations: 4 kB / 355.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.1155, allocations: 0 / 355.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.307e-06/0.1155, allocations: 7.891 kB / 355.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1155, allocations: 0 / 355.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001702/0.1157, allocations: 182.1 kB / 355.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.088e-05/0.1158, allocations: 93 kB / 355.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.1158, allocations: 3.953 kB / 355.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.013e-05/0.1159, allocations: 7.984 kB / 355.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.801e-05/0.1159, allocations: 0 / 355.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.1159, allocations: 0 / 355.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.431e-05/0.116, allocations: 106.1 kB / 355.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.116, allocations: 4 kB / 355.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002192/0.1162, allocations: 4 kB / 355.6 MB, free: 14.9 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000484/0.1167, allocations: 0.7875 MB / 356.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001273/0.1169, allocations: 35.91 kB / 356.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1169, allocations: 0 / 356.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.382e-05/0.1169, allocations: 8 kB / 356.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.1172, allocations: 25.19 kB / 356.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.1182, allocations: 0.9156 MB / 357.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.1185, allocations: 0.6926 MB / 358.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.405e-05/0.1186, allocations: 8 kB / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.235e-05/0.1186, allocations: 11.44 kB / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of SimCode: time 1.8e-07/0.1186, allocations: 0 / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0114/0.13, allocations: 1.211 MB / 359.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002479/0.1303, allocations: 202.5 kB / 359.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.948/2.079, allocations: 0 / 359.5 MB, free: 10.97 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat does not exist to compare? outputFormat=mat