Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",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.001069/0.001069, allocations: 90.8 kB / 16.95 MB, free: 6.449 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.001065/0.001065, allocations: 183.5 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.648/1.648, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004806/0.0004807, allocations: 15.44 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1075, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003223/0.1108, allocations: 1.65 MB / 330.1 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002265/0.1131, allocations: 0.9761 MB / 331.1 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002926/0.1134, allocations: 11.94 kB / 331.1 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001041/0.1145, allocations: 263.4 kB / 331.3 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005793/0.115, allocations: 183.5 kB / 331.5 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007672/0.1158, allocations: 211.6 kB / 331.7 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004824/0.1163, allocations: 307.1 kB / 332 MB, free: 412 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.1165, allocations: 60.48 kB / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.1168, allocations: 119.5 kB / 332.2 MB, free: 232 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.117, allocations: 131.4 kB / 332.3 MB, free: 100 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.499e-05/0.117, allocations: 4 kB / 332.3 MB, free: 96 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.1172, allocations: 63.89 kB / 332.4 MB, free: 32 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.1173, allocations: 63.81 kB / 332.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.979e-05/0.1174, allocations: 77.52 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003506/0.1178, allocations: 259.7 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1178, allocations: 0 / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1178, allocations: 0 / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.1178, allocations: 3.938 kB / 332.8 MB, free: 15.63 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001277/0.1191, allocations: 0.6143 MB / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/0.1192, allocations: 12.03 kB / 333.4 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.89e-05/0.1193, allocations: 42.56 kB / 333.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.1194, allocations: 31.62 kB / 333.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006066/0.12, allocations: 323 kB / 333.8 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.1201, allocations: 11.94 kB / 333.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.903e-05/0.1201, allocations: 8 kB / 333.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000352/0.1205, allocations: 140.2 kB / 334 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1205, allocations: 0 / 334 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.1205, allocations: 12 kB / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.1205, allocations: 0 / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.1207, allocations: 67.83 kB / 334 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007886/0.1215, allocations: 0.4925 MB / 334.5 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.1218, allocations: 134.6 kB / 334.7 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.1219, allocations: 48.84 kB / 334.7 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.122, allocations: 0 / 334.7 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.1222, allocations: 119.3 kB / 334.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 2.956e-06/0.1223, allocations: 0 / 334.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005168/0.1228, allocations: 216.8 kB / 335 MB, free: 13.18 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.046e-05/0.1229, allocations: 106.8 kB / 335.1 MB, free: 13.05 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004862/0.1234, allocations: 428.4 kB / 335.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.024e-05/0.1234, allocations: 33.7 kB / 335.6 MB, free: 12.58 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.1235, allocations: 172 kB / 335.8 MB, free: 12.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.1236, allocations: 43.45 kB / 335.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.214e-06/0.1236, allocations: 0 / 335.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1238, allocations: 342.8 kB / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.1239, allocations: 43.98 kB / 336.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.124, allocations: 101.9 kB / 336.3 MB, free: 11.86 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001236/0.1242, allocations: 51.94 kB / 336.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.247e-06/0.1242, allocations: 3.953 kB / 336.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003279/0.1245, allocations: 173.2 kB / 336.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.1246, allocations: 4 kB / 336.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1246, allocations: 0 / 336.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.1246, allocations: 4 kB / 336.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.1247, allocations: 31.98 kB / 336.5 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.1247, allocations: 4 kB / 336.5 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.1249, allocations: 19.83 kB / 336.6 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.1249, allocations: 8 kB / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001972/0.1251, allocations: 163.6 kB / 336.7 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.553e-05/0.1252, allocations: 39.5 kB / 336.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.378e-05/0.1252, allocations: 38.94 kB / 336.8 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.1253, allocations: 8 kB / 336.8 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.1253, allocations: 0 / 336.8 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.1253, allocations: 0 / 336.8 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002965/0.1256, allocations: 301.4 kB / 337.1 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1256, allocations: 0 / 337.1 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.243e-05/0.1256, allocations: 15.89 kB / 337.1 MB, free: 10.94 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1256, allocations: 0 / 337.1 MB, free: 10.94 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.1257, allocations: 3.984 kB / 337.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.1257, allocations: 7.938 kB / 337.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1257, allocations: 0 / 337.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003556/0.126, allocations: 193.8 kB / 337.3 MB, free: 10.72 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.1262, allocations: 120.6 kB / 337.4 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.1262, allocations: 7.953 kB / 337.5 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.509e-05/0.1263, allocations: 12 kB / 337.5 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.24e-05/0.1264, allocations: 11.97 kB / 337.5 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.1264, allocations: 11.94 kB / 337.5 MB, free: 10.54 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003707/0.1268, allocations: 315 kB / 337.8 MB, free: 10.23 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1268, allocations: 0 / 337.8 MB, free: 10.23 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003278/0.1271, allocations: 52 kB / 337.8 MB, free: 10.18 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001549/0.1287, allocations: 1.059 MB / 338.9 MB, free: 9.109 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003052/0.129, allocations: 115.8 kB / 339 MB, free: 8.996 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.129, allocations: 4 kB / 339 MB, free: 8.992 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.1292, allocations: 59.91 kB / 339.1 MB, free: 8.934 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/0.1296, allocations: 69.33 kB / 339.1 MB, free: 8.863 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00265/0.1322, allocations: 1.643 MB / 340.8 MB, free: 7.156 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.1326, allocations: 0.7718 MB / 341.6 MB, free: 6.359 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001493/0.1328, allocations: 42.27 kB / 341.6 MB, free: 6.32 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.133, allocations: 91.39 kB / 341.7 MB, free: 6.23 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.133, allocations: 0 / 341.7 MB, free: 6.23 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.1539, allocations: 6.431 MB / 348.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.1541, allocations: 211.8 kB / 348.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.092/2.246, allocations: 3.938 kB / 348.3 MB, free: 15.54 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat