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.001068/0.001068, allocations: 86.72 kB / 16.31 MB, free: 6.461 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.001012/0.001012, allocations: 180.3 kB / 17.21 MB, free: 6.328 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.474/1.474, allocations: 223.2 MB / 241.2 MB, free: 368 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002994, allocations: 8 kB / 300.9 MB, free: 6.379 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1157, allocations: 50.41 MB / 351.3 MB, free: 3.949 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002355/0.1181, allocations: 1.217 MB / 352.5 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004277/0.1185, allocations: 144.3 kB / 352.7 MB, free: 2.578 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.372e-05/0.1186, allocations: 3.938 kB / 352.7 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.464e-05/0.1187, allocations: 0 / 352.7 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.1188, allocations: 11.94 kB / 352.7 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.1191, allocations: 31.91 kB / 352.7 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001034/0.1192, allocations: 35.86 kB / 352.8 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.1194, allocations: 11.97 kB / 352.8 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.587e-05/0.1194, allocations: 15.92 kB / 352.8 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.006e-05/0.1195, allocations: 11.92 kB / 352.8 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.792e-05/0.1195, allocations: 0 / 352.8 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.633e-05/0.1195, allocations: 4 kB / 352.8 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.295e-05/0.1196, allocations: 11.94 kB / 352.8 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.935e-05/0.1196, allocations: 29.7 kB / 352.9 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.625e-05/0.1197, allocations: 31.94 kB / 352.9 MB, free: 2.375 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1197, allocations: 0 / 352.9 MB, free: 2.375 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1198, allocations: 0 / 352.9 MB, free: 2.375 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.1198, allocations: 4 kB / 352.9 MB, free: 2.371 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.0005865/0.1204, allocations: 359.3 kB / 353.2 MB, free: 1.973 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.1204, allocations: 8.031 kB / 353.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.233e-05/0.1205, allocations: 38.56 kB / 353.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.624e-05/0.1205, allocations: 15.86 kB / 353.3 MB, free: 1.902 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.1208, allocations: 194.2 kB / 353.5 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.1209, allocations: 0 / 353.5 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.1209, allocations: 4 kB / 353.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003863/0.1213, allocations: 113 kB / 353.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1213, allocations: 7.938 kB / 353.6 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.1213, allocations: 0 / 353.6 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.1213, allocations: 3.953 kB / 353.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.747e-05/0.1214, allocations: 23.98 kB / 353.6 MB, free: 1.508 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004024/0.1218, allocations: 261.7 kB / 353.9 MB, free: 1.199 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.1221, allocations: 142.2 kB / 354 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.785e-05/0.1222, allocations: 29.77 kB / 354.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.1222, allocations: 0 / 354.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.1223, allocations: 42.5 kB / 354.1 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.1223, allocations: 0 / 354.1 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002789/0.1226, allocations: 77.62 kB / 354.2 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/0.1226, allocations: 81.05 kB / 354.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.1228, allocations: 142.1 kB / 354.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.1228, allocations: 29.7 kB / 354.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.39e-05/0.1229, allocations: 84.14 kB / 354.5 MB, free: 496 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.325e-05/0.123, allocations: 3.938 kB / 354.5 MB, free: 492 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-06/0.123, allocations: 7.938 kB / 354.5 MB, free: 484 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.1232, allocations: 314.8 kB / 354.8 MB, free: 160 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.115e-05/0.1232, allocations: 7.984 kB / 354.8 MB, free: 152 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.722e-05/0.1233, allocations: 43.42 kB / 354.9 MB, free: 96 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.184e-05/0.1233, allocations: 12 kB / 354.9 MB, free: 84 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1233, allocations: 0 / 354.9 MB, free: 84 kB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001321/0.1235, allocations: 77.45 kB / 355 MB, free: 0 / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.99e-05/0.1235, allocations: 8.047 kB / 355 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1236, allocations: 3.953 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1236, allocations: 0 / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.185e-05/0.1236, allocations: 8 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1237, allocations: 4 kB / 355 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.371e-05/0.1237, allocations: 11.88 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.1237, allocations: 0 / 355 MB, free: 15.96 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 0.0001078/0.1238, allocations: 126 kB / 355.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.368e-05/0.1239, allocations: 49.53 kB / 355.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.136e-05/0.124, allocations: 12.58 kB / 355.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/0.124, allocations: 3.953 kB / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.124, allocations: 4 kB / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.124, allocations: 3.984 kB / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.1242, allocations: 165.7 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1242, allocations: 0 / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.878e-05/0.1243, allocations: 19.98 kB / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.1243, allocations: 4 kB / 355.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.1243, allocations: 0 / 355.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1243, allocations: 0 / 355.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.1243, allocations: 7.938 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002182/0.1246, allocations: 172.3 kB / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.259e-05/0.1247, allocations: 93 kB / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.1247, allocations: 0 / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.706e-05/0.1248, allocations: 4 kB / 355.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.1248, allocations: 3.953 kB / 355.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.1248, allocations: 0 / 355.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.003e-05/0.1249, allocations: 107.2 kB / 355.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1249, allocations: 0 / 355.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.1252, allocations: 4 kB / 355.8 MB, free: 15.09 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.0006068/0.1258, allocations: 0.7092 MB / 356.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001472/0.1259, allocations: 31.98 kB / 356.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1259, allocations: 0 / 356.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.027e-05/0.126, allocations: 19.86 kB / 356.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.1264, allocations: 18.78 kB / 356.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008392/0.1272, allocations: 485 kB / 357 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.1275, allocations: 0.6887 MB / 357.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.621e-05/0.1276, allocations: 4 kB / 357.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.358e-05/0.1276, allocations: 11.44 kB / 357.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1276, allocations: 0 / 357.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01306/0.1407, allocations: 1.222 MB / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/0.1409, allocations: 203.9 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.945/2.086, allocations: 3.75 kB / 359.1 MB, free: 11.7 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