Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.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/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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(Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",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.001157/0.001157, allocations: 172.4 kB / 16.14 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 205.4 MB / 222.3 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007506/0.0007506, allocations: 83.89 kB / 270.6 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08121/0.08121, allocations: 12.61 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.000349, allocations: 12 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08133/0.08169, allocations: 50.37 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl): time 0.001965/0.08371, allocations: 1.779 MB / 444.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00088/0.08462, allocations: 0.5778 MB / 445.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.08475, allocations: 4 kB / 445.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.904e-05/0.08485, allocations: 15.8 kB / 445.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.08509, allocations: 71.53 kB / 445.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000162/0.08526, allocations: 43.95 kB / 445.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002033/0.08548, allocations: 251.1 kB / 445.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.0856, allocations: 56.94 kB / 445.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.856e-05/0.0857, allocations: 103.3 kB / 446 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.08584, allocations: 119.3 kB / 446.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.168e-05/0.08588, allocations: 8 kB / 446.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.913e-05/0.08592, allocations: 12 kB / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.697e-05/0.08599, allocations: 47.7 kB / 446.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.815e-05/0.08609, allocations: 140.8 kB / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.08627, allocations: 211.1 kB / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.08628, allocations: 0 / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.08629, allocations: 0 / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.0863, allocations: 4 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0008694/0.08717, allocations: 0.5684 MB / 447.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.08722, allocations: 8.031 kB / 447.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.919e-05/0.08727, allocations: 54.67 kB / 447.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.603e-05/0.08732, allocations: 32.56 kB / 447.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.0876, allocations: 308 kB / 447.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.08762, allocations: 15.94 kB / 447.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.08765, allocations: 12 kB / 447.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.08786, allocations: 130.4 kB / 447.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.08788, allocations: 0 / 447.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.0879, allocations: 11.98 kB / 447.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.08791, allocations: 0 / 447.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001517/0.08806, allocations: 79.95 kB / 447.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006087/0.08868, allocations: 0.5197 MB / 448.3 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004382/0.08913, allocations: 178.7 kB / 448.5 MB, free: 9.816 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.08925, allocations: 68.77 kB / 448.5 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.08928, allocations: 0 / 448.5 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.0893, allocations: 38.56 kB / 448.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 9.02e-07/0.08931, allocations: 0 / 448.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001249/0.09056, allocations: 0.6807 MB / 449.3 MB, free: 8.965 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.013e-05/0.09059, allocations: 51.41 kB / 449.3 MB, free: 8.902 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.09086, allocations: 336.6 kB / 449.6 MB, free: 8.562 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.09088, allocations: 29.7 kB / 449.7 MB, free: 8.527 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.223e-05/0.09095, allocations: 160.3 kB / 449.8 MB, free: 8.363 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.066e-05/0.09099, allocations: 55.11 kB / 449.9 MB, free: 8.309 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.004e-05/0.09101, allocations: 8 kB / 449.9 MB, free: 8.301 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.73e-05/0.09107, allocations: 342.8 kB / 450.2 MB, free: 7.957 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.09118, allocations: 63.92 kB / 450.3 MB, free: 7.895 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.822e-05/0.09129, allocations: 63.91 kB / 450.3 MB, free: 7.832 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.09151, allocations: 144.8 kB / 450.5 MB, free: 7.688 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.09152, allocations: 3.938 kB / 450.5 MB, free: 7.684 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002862/0.09181, allocations: 229.1 kB / 450.7 MB, free: 7.453 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.09183, allocations: 4 kB / 450.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.09184, allocations: 0 / 450.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.09186, allocations: 0 / 450.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002565/0.09212, allocations: 59.95 kB / 450.8 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.09213, allocations: 3.938 kB / 450.8 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.09228, allocations: 15.94 kB / 450.8 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.0923, allocations: 4 kB / 450.8 MB, free: 7.367 MB / 298.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.423e-05/0.09238, allocations: 137.8 kB / 450.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.301e-05/0.09243, allocations: 27.62 kB / 451 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003363/0.09277, allocations: 226.6 kB / 451.2 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.09279, allocations: 0 / 451.2 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.0928, allocations: 3.938 kB / 451.2 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.0928, allocations: 4 kB / 451.2 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002408/0.09305, allocations: 325.4 kB / 451.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.09306, allocations: 0 / 451.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003426/0.09341, allocations: 59.95 kB / 451.6 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.09342, allocations: 0 / 451.6 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.09344, allocations: 11.98 kB / 451.6 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.09345, allocations: 0 / 451.6 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.09346, allocations: 3.938 kB / 451.6 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004303/0.09389, allocations: 394.9 kB / 452 MB, free: 6.117 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.969e-05/0.09395, allocations: 108.8 kB / 452.1 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.584e-05/0.09399, allocations: 7.984 kB / 452.1 MB, free: 5.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.09418, allocations: 8 kB / 452.1 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.09422, allocations: 19.91 kB / 452.1 MB, free: 5.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.09424, allocations: 11.98 kB / 452.1 MB, free: 5.945 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001822/0.09443, allocations: 251.1 kB / 452.4 MB, free: 5.699 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09443, allocations: 0 / 452.4 MB, free: 5.699 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002322/0.09467, allocations: 40 kB / 452.4 MB, free: 5.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (invMixingUnit.c,invMixingUnit.T,filter.x[1],mixingUnit.c,mixingUnit.T) * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005661/0.09524, allocations: 0.9253 MB / 453.3 MB, free: 4.711 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002693/0.09552, allocations: 160.4 kB / 453.5 MB, free: 4.555 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.09553, allocations: 0 / 453.5 MB, free: 4.555 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.09566, allocations: 91.81 kB / 453.6 MB, free: 4.465 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.096, allocations: 44.88 kB / 453.6 MB, free: 4.422 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.09898, allocations: 3.261 MB / 456.9 MB, free: 1.082 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001426/0.09914, allocations: 0.7597 MB / 457.6 MB, free: 300 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.595e-05/0.09924, allocations: 34.27 kB / 457.7 MB, free: 268 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.09938, allocations: 99.39 kB / 457.8 MB, free: 168 kB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.09939, allocations: 0 / 457.8 MB, free: 168 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01486/0.1142, allocations: 5.206 MB / 463 MB, free: 10.94 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002621/0.1145, allocations: 271.9 kB / 463.2 MB, free: 10.58 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.158/2.273, allocations: 3.938 kB / 463.2 MB, free: 10.57 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat does not exist to compare? outputFormat=mat