Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.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.BooleanSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample",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.001136/0.001136, allocations: 92.53 kB / 16.3 MB, free: 5.539 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.001317/0.001317, allocations: 185.8 kB / 17.2 MB, free: 5.473 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.495/1.495, allocations: 223.2 MB / 241.1 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002623/0.0002624, allocations: 4 kB / 300.8 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1138, allocations: 50.4 MB / 351.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample): time 0.002422/0.1163, allocations: 1.551 MB / 352.8 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.1179, allocations: 0.9633 MB / 353.7 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.1181, allocations: 7.938 kB / 353.7 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005884/0.1187, allocations: 131.7 kB / 353.9 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.1189, allocations: 95.67 kB / 354 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005001/0.1195, allocations: 174.7 kB / 354.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000194/0.1197, allocations: 111.8 kB / 354.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.1198, allocations: 33.55 kB / 354.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.856e-05/0.1199, allocations: 55.7 kB / 354.3 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.12, allocations: 67.69 kB / 354.4 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.12, allocations: 0 / 354.4 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.1202, allocations: 35.92 kB / 354.4 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.26e-05/0.1202, allocations: 27.91 kB / 354.5 MB, free: 476 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.015e-05/0.1203, allocations: 53.58 kB / 354.5 MB, free: 416 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002095/0.1205, allocations: 148 kB / 354.7 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1205, allocations: 0 / 354.7 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1205, allocations: 4 kB / 354.7 MB, free: 264 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1205, allocations: 0 / 354.7 MB, free: 264 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.0007448/0.1213, allocations: 496 kB / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.1213, allocations: 12.03 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.676e-05/0.1214, allocations: 34.56 kB / 355.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.893e-05/0.1214, allocations: 23.75 kB / 355.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.1218, allocations: 249.7 kB / 355.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.1218, allocations: 4 kB / 355.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.1218, allocations: 15.98 kB / 355.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.1222, allocations: 138.1 kB / 355.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1222, allocations: 4 kB / 355.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.1222, allocations: 7.953 kB / 355.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.1222, allocations: 0 / 355.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.388e-05/0.1223, allocations: 35.92 kB / 355.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005301/0.1229, allocations: 366.3 kB / 356 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.1231, allocations: 111.9 kB / 356.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.1231, allocations: 7.953 kB / 356.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001569/0.1233, allocations: 71.45 kB / 356.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.1233, allocations: 4 kB / 356.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003594/0.1237, allocations: 145.2 kB / 356.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.103e-05/0.1238, allocations: 128.5 kB / 356.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.124, allocations: 265 kB / 356.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.1241, allocations: 25.7 kB / 356.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.506e-05/0.1241, allocations: 120.1 kB / 356.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/0.1242, allocations: 24 kB / 356.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/0.1242, allocations: 0 / 356.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1243, allocations: 326.8 kB / 357.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.628e-05/0.1244, allocations: 19.98 kB / 357.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.93e-05/0.1245, allocations: 69.94 kB / 357.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.54e-05/0.1246, allocations: 28.02 kB / 357.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1246, allocations: 0 / 357.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001915/0.1248, allocations: 117.6 kB / 357.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.1248, allocations: 8 kB / 357.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1248, allocations: 64 / 357.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.1248, allocations: 8 kB / 357.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.76e-05/0.1249, allocations: 12.12 kB / 357.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.1249, allocations: 4 kB / 357.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.825e-05/0.125, allocations: 15.89 kB / 357.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.125, allocations: 4 kB / 357.5 MB, free: 13.11 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,superSample1.y,superSample1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001668/0.1252, allocations: 141.8 kB / 357.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.695e-05/0.1253, allocations: 61.47 kB / 357.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.349e-05/0.1253, allocations: 21.7 kB / 357.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.1253, allocations: 8.062 kB / 357.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1254, allocations: 0 / 357.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1254, allocations: 0 / 357.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.1256, allocations: 225.6 kB / 358 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.1256, allocations: 3.938 kB / 358 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.417e-05/0.1256, allocations: 7.938 kB / 358 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1256, allocations: 0 / 358 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.1257, allocations: 7.953 kB / 358 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.1257, allocations: 0 / 358 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1257, allocations: 0 / 358 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002538/0.1259, allocations: 189.8 kB / 358.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001799/0.1261, allocations: 108.8 kB / 358.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.1262, allocations: 7.984 kB / 358.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.421e-05/0.1262, allocations: 12 kB / 358.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.1263, allocations: 4 kB / 358.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.1263, allocations: 3.984 kB / 358.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001909/0.1265, allocations: 192.5 kB / 358.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1265, allocations: 0 / 358.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002499/0.1268, allocations: 31.98 kB / 358.5 MB, free: 11.98 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,superSample1.y,sample1.y,superSample1.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 (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.001507/0.1283, allocations: 1.167 MB / 359.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001959/0.1285, allocations: 67.91 kB / 359.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.1285, allocations: 4.25 kB / 359.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.031e-05/0.1286, allocations: 23.94 kB / 359.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.1289, allocations: 62.36 kB / 359.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.1309, allocations: 1.546 MB / 361.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.1313, allocations: 0.7322 MB / 362.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.354e-05/0.1314, allocations: 29.78 kB / 362.1 MB, free: 8.363 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.885e-05/0.1315, allocations: 51.36 kB / 362.2 MB, free: 8.312 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1315, allocations: 0 / 362.2 MB, free: 8.312 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0173/0.1488, allocations: 4 MB / 366.2 MB, free: 4.496 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.1491, allocations: 234.4 kB / 366.4 MB, free: 4.258 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.961/2.11, allocations: 0 / 366.4 MB, free: 4.258 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample_res.mat does not exist to compare? outputFormat=mat