Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.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.FluxTubes.Sources,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.FluxTubes.Sources,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sources",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.001068/0.001068, allocations: 88.19 kB / 15.7 MB, free: 460 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.001293/0.001294, allocations: 175.4 kB / 16.58 MB, free: 6.84 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.628/1.628, allocations: 205.4 MB / 222.8 MB, free: 5.66 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.3514/0.3514, allocations: 43.55 MB / 314.6 MB, free: 8.754 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.0005196/0.0005197, allocations: 12 kB / 384 MB, free: 7.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1142, allocations: 58.86 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Sources): time 0.002713/0.117, allocations: 2.198 MB / 445.1 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.1182, allocations: 0.7453 MB / 445.8 MB, free: 10 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.1185, allocations: 4 kB / 445.8 MB, free: 9.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.1187, allocations: 55.61 kB / 445.9 MB, free: 9.941 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003152/0.1191, allocations: 87.42 kB / 446 MB, free: 9.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003334/0.1194, allocations: 75.86 kB / 446 MB, free: 9.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004594/0.1199, allocations: 374.5 kB / 446.4 MB, free: 9.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002712/0.1201, allocations: 115.2 kB / 446.5 MB, free: 9.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.1204, allocations: 135.5 kB / 446.7 MB, free: 9.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.1207, allocations: 139.3 kB / 446.8 MB, free: 9.027 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.974e-05/0.1207, allocations: 16 kB / 446.8 MB, free: 9.012 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.898e-05/0.1208, allocations: 20 kB / 446.8 MB, free: 8.992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.144e-05/0.1209, allocations: 55.75 kB / 446.9 MB, free: 8.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.121, allocations: 89.52 kB / 447 MB, free: 8.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002975/0.1213, allocations: 303.1 kB / 447.3 MB, free: 8.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1213, allocations: 0 / 447.3 MB, free: 8.547 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1213, allocations: 3.938 kB / 447.3 MB, free: 8.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.1213, allocations: 0 / 447.3 MB, free: 8.543 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001002/0.1223, allocations: 0.6161 MB / 447.9 MB, free: 7.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.1224, allocations: 8.031 kB / 447.9 MB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.011e-05/0.1225, allocations: 70.53 kB / 448 MB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.1226, allocations: 47.39 kB / 448 MB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003306/0.1229, allocations: 271.2 kB / 448.3 MB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.123, allocations: 29 kB / 448.3 MB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.217e-05/0.123, allocations: 32 kB / 448.3 MB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006872/0.1237, allocations: 362.7 kB / 448.7 MB, free: 7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.1237, allocations: 3.938 kB / 448.7 MB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/0.1238, allocations: 23.94 kB / 448.7 MB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.1238, allocations: 8 kB / 448.7 MB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006033/0.1244, allocations: 284.9 kB / 449 MB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.1263, allocations: 1.359 MB / 450.4 MB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.1268, allocations: 202.5 kB / 450.6 MB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/0.127, allocations: 99.45 kB / 450.6 MB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.127, allocations: 4 kB / 450.7 MB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.1271, allocations: 38.5 kB / 450.7 MB, free: 4.844 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.1271, allocations: 0 / 450.7 MB, free: 4.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007465/0.1278, allocations: 281.6 kB / 451 MB, free: 4.562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.032e-05/0.1279, allocations: 136.4 kB / 451.1 MB, free: 4.398 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003241/0.1282, allocations: 332.4 kB / 451.4 MB, free: 4.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.1283, allocations: 25.7 kB / 451.4 MB, free: 4.039 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.1284, allocations: 239.6 kB / 451.7 MB, free: 3.801 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.083e-05/0.1285, allocations: 51.3 kB / 451.7 MB, free: 3.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.282e-05/0.1285, allocations: 8 kB / 451.7 MB, free: 3.742 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1286, allocations: 338.8 kB / 452.1 MB, free: 3.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.1289, allocations: 88.5 kB / 452.2 MB, free: 3.316 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002618/0.1291, allocations: 180.2 kB / 452.3 MB, free: 3.102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.1294, allocations: 115.9 kB / 452.4 MB, free: 2.988 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1294, allocations: 4 kB / 452.5 MB, free: 2.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006307/0.13, allocations: 317 kB / 452.8 MB, free: 2.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.1301, allocations: 11.94 kB / 452.8 MB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1301, allocations: 0 / 452.8 MB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.1301, allocations: 8 kB / 452.8 MB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003741/0.1305, allocations: 112 kB / 452.9 MB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.1305, allocations: 4 kB / 452.9 MB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.1307, allocations: 55.56 kB / 452.9 MB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.1308, allocations: 19.95 kB / 453 MB, free: 2.461 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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.0001418/0.1309, allocations: 145.7 kB / 453.1 MB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.978e-05/0.131, allocations: 35.62 kB / 453.1 MB, free: 2.273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.214e-05/0.1311, allocations: 30.41 kB / 453.2 MB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1311, allocations: 4 kB / 453.2 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1311, allocations: 0 / 453.2 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1311, allocations: 4.266 kB / 453.2 MB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007401/0.1319, allocations: 0.5876 MB / 453.8 MB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1319, allocations: 0 / 453.8 MB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002765/0.1322, allocations: 80.03 kB / 453.8 MB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.1322, allocations: 3.984 kB / 453.9 MB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.1322, allocations: 4 kB / 453.9 MB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.1322, allocations: 11.89 kB / 453.9 MB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1322, allocations: 0 / 453.9 MB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005132/0.1327, allocations: 418.5 kB / 454.3 MB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.165e-05/0.1328, allocations: 112.8 kB / 454.4 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.581e-05/0.1329, allocations: 4 kB / 454.4 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/0.1331, allocations: 28.16 kB / 454.4 MB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.504e-05/0.1331, allocations: 19.94 kB / 454.4 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.1332, allocations: 8 kB / 454.4 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002126/0.1334, allocations: 223.1 kB / 454.7 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1334, allocations: 0 / 454.7 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003946/0.1338, allocations: 71.75 kB / 454.7 MB, free: 0.5586 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (15): * Single equations (assignments): 15 * 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.1918/0.3256, allocations: 0.9467 MB / 455.7 MB, free: 45.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007391/0.3265, allocations: 209.1 kB / 455.9 MB, free: 45.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.3265, allocations: 2.812 kB / 455.9 MB, free: 45.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.3267, allocations: 92.53 kB / 456 MB, free: 45.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000648/0.3274, allocations: 22.34 kB / 456 MB, free: 45.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/0.3301, allocations: 1.732 MB / 457.7 MB, free: 45.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001719/0.3303, allocations: 0.7728 MB / 458.5 MB, free: 44.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.3304, allocations: 21.47 kB / 458.5 MB, free: 44.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.3305, allocations: 98.84 kB / 458.6 MB, free: 44.31 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3305, allocations: 1.562 kB / 458.6 MB, free: 44.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01432/0.3449, allocations: 4.331 MB / 463 MB, free: 43.95 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000127/0.345, allocations: 168.9 kB / 463.1 MB, free: 43.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/2.149, allocations: 0 / 463.1 MB, free: 43.71 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sources.fmu > ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources_res.mat does not exist to compare? outputFormat=mat