Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.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.ControlledMixingUnit,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit",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.0009461/0.0009463, allocations: 172.8 kB / 16.15 MB, free: 5.652 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.491/1.491, allocations: 205.4 MB / 222.3 MB, free: 9.023 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.0007132/0.0007132, allocations: 82.36 kB / 270.7 MB, free: 8.25 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.07173/0.07173, allocations: 12.6 MB / 331.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.000385, allocations: 12 kB / 392.8 MB, free: 65.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08258/0.08299, allocations: 50.38 MB / 443.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.002177/0.08522, allocations: 1.906 MB / 445 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.08648, allocations: 0.6245 MB / 445.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.08673, allocations: 4 kB / 445.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.08687, allocations: 15.8 kB / 445.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002958/0.08718, allocations: 59.62 kB / 445.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002737/0.08746, allocations: 67.86 kB / 445.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.08773, allocations: 266.8 kB / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001581/0.0879, allocations: 64.95 kB / 446.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.08806, allocations: 99.42 kB / 446.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.08822, allocations: 127.2 kB / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.426e-05/0.08826, allocations: 12 kB / 446.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.997e-05/0.0883, allocations: 12 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.588e-05/0.08837, allocations: 51.69 kB / 446.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.08848, allocations: 148.8 kB / 446.6 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.08868, allocations: 235.2 kB / 446.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.08869, allocations: 0 / 446.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.0887, allocations: 0 / 446.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.08871, allocations: 3.938 kB / 446.8 MB, free: 11.63 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009501/0.08967, allocations: 0.5803 MB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.08972, allocations: 11.97 kB / 447.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.967e-05/0.08978, allocations: 46.73 kB / 447.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.79e-05/0.08983, allocations: 32.56 kB / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.09017, allocations: 320.3 kB / 447.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.0902, allocations: 16.22 kB / 447.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.192e-05/0.09023, allocations: 12 kB / 447.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005774/0.09082, allocations: 388.7 kB / 448.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.09084, allocations: 4 kB / 448.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.09086, allocations: 4 kB / 448.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.09088, allocations: 4 kB / 448.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.09107, allocations: 95.89 kB / 448.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005826/0.09166, allocations: 0.5326 MB / 448.8 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006086/0.09228, allocations: 312.6 kB / 449.1 MB, free: 9.094 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.09248, allocations: 150.5 kB / 449.3 MB, free: 8.938 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.09251, allocations: 8.656 kB / 449.3 MB, free: 8.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.563e-05/0.09254, allocations: 30.56 kB / 449.3 MB, free: 8.891 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.373e-06/0.09254, allocations: 0 / 449.3 MB, free: 8.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.002033/0.09458, allocations: 1.339 MB / 450.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.65e-05/0.09467, allocations: 138.7 kB / 450.8 MB, free: 7.297 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.09499, allocations: 332.6 kB / 451.1 MB, free: 6.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.09502, allocations: 37.83 kB / 451.2 MB, free: 6.918 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.603e-05/0.0951, allocations: 141.1 kB / 451.3 MB, free: 6.777 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.636e-05/0.09515, allocations: 55.44 kB / 451.4 MB, free: 6.723 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.149e-05/0.09517, allocations: 8 kB / 451.4 MB, free: 6.715 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.44e-05/0.09525, allocations: 346.8 kB / 451.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.09537, allocations: 72.83 kB / 451.8 MB, free: 6.297 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.09558, allocations: 322.8 kB / 452.1 MB, free: 5.855 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003578/0.09595, allocations: 420.8 kB / 452.5 MB, free: 5.324 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.09596, allocations: 0 / 452.5 MB, free: 5.324 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004829/0.09645, allocations: 420.5 kB / 452.9 MB, free: 4.906 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.09648, allocations: 8.969 kB / 452.9 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.09649, allocations: 8 kB / 452.9 MB, free: 4.891 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.09652, allocations: 16 kB / 452.9 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.09675, allocations: 99.83 kB / 453 MB, free: 4.777 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.09677, allocations: 15.94 kB / 453.1 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.09698, allocations: 23.98 kB / 453.1 MB, free: 4.738 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/0.09703, allocations: 24 kB / 453.1 MB, free: 4.715 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 (filter.x[1],invMixingUnit.T,invMixingUnit.c,$DER.filter.x[1],$DER.invMixingUnit.c,$DER.invMixingUnit.T) * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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 0.0001238/0.09716, allocations: 165.5 kB / 453.3 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000375/0.09754, allocations: 292.9 kB / 453.5 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005378/0.09808, allocations: 384.2 kB / 453.9 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.0981, allocations: 12.12 kB / 453.9 MB, free: 3.855 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.09812, allocations: 0 / 453.9 MB, free: 3.855 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.09813, allocations: 7.969 kB / 453.9 MB, free: 3.848 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002885/0.09843, allocations: 329.3 kB / 454.3 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.09844, allocations: 0 / 454.3 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005097/0.09895, allocations: 127.8 kB / 454.4 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.09897, allocations: 0 / 454.4 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.099, allocations: 16 kB / 454.4 MB, free: 3.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.09901, allocations: 7.984 kB / 454.4 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.09901, allocations: 0 / 454.4 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008476/0.09987, allocations: 0.7148 MB / 455.1 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.666e-05/0.09995, allocations: 120.5 kB / 455.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.837e-05/0.1, allocations: 19.94 kB / 455.3 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002537/0.1003, allocations: 11.98 kB / 455.3 MB, free: 2.426 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.034e-05/0.1003, allocations: 4 kB / 455.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.1003, allocations: 15.98 kB / 455.3 MB, free: 2.406 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002015/0.1005, allocations: 247.1 kB / 455.5 MB, free: 2.168 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1006, allocations: 0 / 455.5 MB, free: 2.168 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003773/0.1009, allocations: 64.06 kB / 455.6 MB, free: 2.105 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 ($DER.invMixingUnit.T,$DER.invMixingUnit.c,$DER.filter.x[1],invMixingUnit.c,invMixingUnit.T,filter.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * 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.0009705/0.1019, allocations: 1.279 MB / 456.9 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004462/0.1024, allocations: 301.8 kB / 457.2 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1024, allocations: 0 / 457.2 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.319e-05/0.1025, allocations: 27.98 kB / 457.2 MB, free: 488 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000778/0.1032, allocations: 213.4 kB / 457.4 MB, free: 280 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0037/0.1069, allocations: 2.36 MB / 459.8 MB, free: 13.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/0.1074, allocations: 0.808 MB / 460.6 MB, free: 12.9 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.1075, allocations: 35.28 kB / 460.6 MB, free: 12.87 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001987/0.1077, allocations: 115.4 kB / 460.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of SimCode: time 3.9e-07/0.1077, allocations: 4 kB / 460.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.126, allocations: 6.345 MB / 467.1 MB, free: 6.391 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002462/0.1263, allocations: 227.4 kB / 467.3 MB, free: 6.125 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/2.299, allocations: 4 kB / 467.3 MB, free: 6.121 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat does not exist to compare? outputFormat=mat