Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 174.9 kB / 8.004 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.666/1.666, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008626/0.0008626, allocations: 86.62 kB / 261.7 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.201/0.201, allocations: 43.5 MB / 353.2 MB, free: 272 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.782e-05/1.786e-05, allocations: 0 / 418.3 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 58.86 MB / 477.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.382/0.4916, allocations: 84.12 MB / 0.5482 GB, free: 9.086 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001867/0.4918, allocations: 64 kB / 0.5482 GB, free: 9.086 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003024/0.4949, allocations: 1.469 MB / 0.5497 GB, free: 8.684 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4949, allocations: 0 / 0.5497 GB, free: 8.684 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.4949, allocations: 7.344 kB / 0.5497 GB, free: 8.684 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0002921/0.4952, allocations: 407.5 kB / 0.5501 GB, free: 8.285 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.4953, allocations: 7.688 kB / 0.5501 GB, free: 8.285 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.204e-05/0.4953, allocations: 20.33 kB / 0.5501 GB, free: 8.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.4955, allocations: 224.5 kB / 0.5503 GB, free: 8.051 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.4955, allocations: 3.844 kB / 0.5503 GB, free: 8.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.044e-05/0.4955, allocations: 11.84 kB / 0.5503 GB, free: 8.051 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001516/0.4957, allocations: 105.2 kB / 0.5504 GB, free: 8.027 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.4959, allocations: 151.8 kB / 0.5506 GB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.4959, allocations: 4 kB / 0.5506 GB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.496, allocations: 0 / 0.5506 GB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.496, allocations: 7.984 kB / 0.5506 GB, free: 7.891 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000472/0.4965, allocations: 468.6 kB / 0.551 GB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.864e-05/0.4965, allocations: 33.45 kB / 0.5511 GB, free: 7.398 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.206e-05/0.4966, allocations: 24.11 kB / 0.5511 GB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-06/0.4966, allocations: 0 / 0.5511 GB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.687e-05/0.4966, allocations: 34.31 kB / 0.5511 GB, free: 7.336 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 9.22e-07/0.4966, allocations: 0.8438 kB / 0.5511 GB, free: 7.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001248/0.4967, allocations: 57.03 kB / 0.5512 GB, free: 7.277 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.644e-05/0.4968, allocations: 51.41 kB / 0.5512 GB, free: 7.215 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.226e-05/0.4968, allocations: 96.31 kB / 0.5513 GB, free: 7.117 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.365e-06/0.4968, allocations: 29.7 kB / 0.5513 GB, free: 7.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.526e-05/0.4969, allocations: 139.1 kB / 0.5515 GB, free: 6.949 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.803e-05/0.4969, allocations: 15.06 kB / 0.5515 GB, free: 6.938 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-06/0.4969, allocations: 0 / 0.5515 GB, free: 6.938 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.501e-05/0.497, allocations: 314.3 kB / 0.5518 GB, free: 6.625 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.3e-05/0.497, allocations: 7.938 kB / 0.5518 GB, free: 6.617 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.049e-05/0.497, allocations: 7.375 kB / 0.5518 GB, free: 6.613 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.798e-05/0.497, allocations: 11.94 kB / 0.5518 GB, free: 6.602 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.497, allocations: 0 / 0.5518 GB, free: 6.602 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 5.7e-05/0.4971, allocations: 56.23 kB / 0.5519 GB, free: 6.547 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.4971, allocations: 4 kB / 0.5519 GB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.4971, allocations: 0 / 0.5519 GB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.4971, allocations: 4 kB / 0.5519 GB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.03e-05/0.4972, allocations: 15.92 kB / 0.5519 GB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.4972, allocations: 0 / 0.5519 GB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.551e-05/0.4973, allocations: 4 kB / 0.5519 GB, free: 6.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.4973, allocations: 0 / 0.5519 GB, free: 6.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 4.028e-05/0.4973, allocations: 104.9 kB / 0.552 GB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 5.844e-05/0.4974, allocations: 53.12 kB / 0.552 GB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.19e-05/0.4974, allocations: 11.28 kB / 0.552 GB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.055e-05/0.4974, allocations: 4.406 kB / 0.5521 GB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.4974, allocations: 0 / 0.5521 GB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4974, allocations: 3.938 kB / 0.5521 GB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.4975, allocations: 0 / 0.5521 GB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.4976, allocations: 323.1 kB / 0.5524 GB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4977, allocations: 0 / 0.5524 GB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.412e-05/0.4977, allocations: 12 kB / 0.5524 GB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4977, allocations: 4 kB / 0.5524 GB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.4977, allocations: 3.984 kB / 0.5524 GB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.4977, allocations: 0 / 0.5524 GB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4977, allocations: 0 / 0.5524 GB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.108e-05/0.4978, allocations: 149.9 kB / 0.5525 GB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.65e-05/0.4978, allocations: 81.09 kB / 0.5526 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.4979, allocations: 4 kB / 0.5526 GB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.398e-05/0.4979, allocations: 4 kB / 0.5526 GB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.934e-05/0.4979, allocations: 7.25 kB / 0.5526 GB, free: 5.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.498, allocations: 0 / 0.5526 GB, free: 5.719 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.506e-05/0.498, allocations: 86.58 kB / 0.5527 GB, free: 5.637 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.498, allocations: 4 kB / 0.5527 GB, free: 5.633 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002148/0.4982, allocations: 23.75 kB / 0.5527 GB, free: 5.609 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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.0002593/0.4985, allocations: 0.6878 MB / 0.5534 GB, free: 4.902 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.82e-05/0.4986, allocations: 19.25 kB / 0.5534 GB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4986, allocations: 4 kB / 0.5534 GB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.733e-05/0.4986, allocations: 8 kB / 0.5534 GB, free: 4.879 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001698/0.4988, allocations: 9.953 kB / 0.5534 GB, free: 4.875 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004752/0.4992, allocations: 247.9 kB / 0.5537 GB, free: 4.609 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.4995, allocations: 0.7341 MB / 0.5544 GB, free: 3.855 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.891e-05/0.4995, allocations: 7.938 kB / 0.5544 GB, free: 3.848 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.634e-05/0.4996, allocations: 41.67 kB / 0.5544 GB, free: 3.832 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4996, allocations: 3.938 kB / 0.5544 GB, free: 3.828 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01948/0.519, allocations: 1.38 MB / 0.5558 GB, free: 2.461 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001354/0.5192, allocations: 120.9 kB / 0.5559 GB, free: 2.266 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.395/1.914, allocations: 0 / 0.5559 GB, free: 2.266 MB / 362.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat does not exist to compare? outputFormat=mat