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/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) 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 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.001051, allocations: 96.83 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 178 kB / 16.57 MB, free: 6.391 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.465/1.465, allocations: 205.4 MB / 222.7 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3259/0.3259, allocations: 43.54 MB / 314.5 MB, free: 8.812 MB / 254.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.0005046/0.0005046, allocations: 16 kB / 384 MB, free: 7.945 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1422, allocations: 58.85 MB / 442.8 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001726/0.144, allocations: 1.249 MB / 444.1 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001374/0.1441, allocations: 47.78 kB / 444.1 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.352e-05/0.1442, allocations: 4 kB / 444.1 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.1443, allocations: 11.92 kB / 444.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.478e-05/0.1444, allocations: 11.98 kB / 444.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.499e-05/0.1444, allocations: 15.98 kB / 444.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.1446, allocations: 51.88 kB / 444.2 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.1448, allocations: 101.9 kB / 444.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.248e-05/0.1448, allocations: 15.91 kB / 444.3 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.107e-05/0.1449, allocations: 19.88 kB / 444.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.185e-05/0.1449, allocations: 0 / 444.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.578e-06/0.1449, allocations: 0 / 444.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.225e-05/0.145, allocations: 59.88 kB / 444.4 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.478e-05/0.1451, allocations: 45.58 kB / 444.5 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001116/0.1452, allocations: 91.77 kB / 444.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.1452, allocations: 8 kB / 444.6 MB, free: 11.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1452, allocations: 0 / 444.6 MB, free: 11.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.1452, allocations: 0 / 444.6 MB, free: 11.24 MB / 382.1 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.0004848/0.1457, allocations: 411.6 kB / 445 MB, free: 10.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1457, allocations: 8.031 kB / 445 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.213e-05/0.1458, allocations: 66.88 kB / 445 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.817e-05/0.1459, allocations: 23.67 kB / 445.1 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.1461, allocations: 210.9 kB / 445.3 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.1462, allocations: 20.44 kB / 445.3 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.1462, allocations: 16 kB / 445.3 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003484/0.1466, allocations: 211.1 kB / 445.5 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.1466, allocations: 0 / 445.5 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.1466, allocations: 12 kB / 445.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.1466, allocations: 4 kB / 445.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.1469, allocations: 137.6 kB / 445.7 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006699/0.1475, allocations: 0.5178 MB / 446.2 MB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.933e-05/0.1476, allocations: 50.56 kB / 446.2 MB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.1477, allocations: 7.938 kB / 446.2 MB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.1477, allocations: 34.5 kB / 446.3 MB, free: 9.363 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.011e-06/0.1477, allocations: 0 / 446.3 MB, free: 9.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002429/0.148, allocations: 77.75 kB / 446.3 MB, free: 9.281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.148, allocations: 55.41 kB / 446.4 MB, free: 9.215 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.942e-05/0.1481, allocations: 113.8 kB / 446.5 MB, free: 9.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.1481, allocations: 25.7 kB / 446.5 MB, free: 9.062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.106e-05/0.1482, allocations: 139.9 kB / 446.7 MB, free: 8.922 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.1482, allocations: 15.75 kB / 446.7 MB, free: 8.906 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.1482, allocations: 4 kB / 446.7 MB, free: 8.902 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1484, allocations: 314.8 kB / 447 MB, free: 8.586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.569e-05/0.1484, allocations: 19.98 kB / 447 MB, free: 8.566 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.458e-05/0.1485, allocations: 12 kB / 447 MB, free: 8.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.827e-05/0.1485, allocations: 19.92 kB / 447.1 MB, free: 8.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1485, allocations: 0 / 447.1 MB, free: 8.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000116/0.1486, allocations: 61.69 kB / 447.1 MB, free: 8.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.1487, allocations: 8 kB / 447.1 MB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1487, allocations: 0 / 447.1 MB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.1487, allocations: 4 kB / 447.1 MB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.836e-05/0.1488, allocations: 11.98 kB / 447.1 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.1488, allocations: 3.953 kB / 447.1 MB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.616e-05/0.1488, allocations: 7.906 kB / 447.1 MB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.1488, allocations: 0 / 447.1 MB, free: 8.434 MB / 382.1 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 () * Number of clocked 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 0.0001092/0.149, allocations: 137.8 kB / 447.3 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.353e-05/0.149, allocations: 3.984 kB / 447.3 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.711e-05/0.149, allocations: 11.97 kB / 447.3 MB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.149, allocations: 7.938 kB / 447.3 MB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.149, allocations: 0 / 447.3 MB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.149, allocations: 7.891 kB / 447.3 MB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003913/0.1494, allocations: 362.6 kB / 447.7 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1495, allocations: 0 / 447.7 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.469e-05/0.1495, allocations: 12.5 kB / 447.7 MB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1495, allocations: 7.938 kB / 447.7 MB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.1495, allocations: 4 kB / 447.7 MB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.1495, allocations: 7.953 kB / 447.7 MB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1495, allocations: 0 / 447.7 MB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001607/0.1497, allocations: 159.4 kB / 447.9 MB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-05/0.1498, allocations: 81.11 kB / 447.9 MB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.1498, allocations: 4 kB / 447.9 MB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.746e-05/0.1499, allocations: 15.97 kB / 448 MB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.641e-05/0.1499, allocations: 3.953 kB / 448 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.1499, allocations: 0 / 448 MB, free: 7.527 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.112e-05/0.15, allocations: 95.2 kB / 448.1 MB, free: 7.434 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.15, allocations: 0 / 448.1 MB, free: 7.434 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.1502, allocations: 31.69 kB / 448.1 MB, free: 7.402 MB / 382.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: 0 () * Number of discrete states: 0 () * Number of clocked 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.0005734/0.1508, allocations: 0.7124 MB / 448.8 MB, free: 6.664 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001355/0.1509, allocations: 28.05 kB / 448.8 MB, free: 6.637 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1509, allocations: 4 kB / 448.8 MB, free: 6.633 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.969e-05/0.151, allocations: 27.92 kB / 448.9 MB, free: 6.605 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002214/0.1512, allocations: 15.94 kB / 448.9 MB, free: 6.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.1523, allocations: 0.6541 MB / 449.5 MB, free: 5.879 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.1526, allocations: 0.7472 MB / 450.3 MB, free: 5.105 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.636e-05/0.1527, allocations: 0 / 450.3 MB, free: 5.105 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.689e-05/0.1527, allocations: 43.42 kB / 450.3 MB, free: 5.062 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1527, allocations: 0 / 450.3 MB, free: 5.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01304/0.1658, allocations: 1.673 MB / 452 MB, free: 3.414 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/0.1661, allocations: 162.1 kB / 452.1 MB, free: 3.168 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/1.975, allocations: 4 kB / 452.1 MB, free: 3.164 MB / 382.1 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) Environment - environmentSimulation: 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