Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008494/0.0008495, allocations: 97.33 kB / 17 MB, free: 6.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009765/0.0009767, allocations: 197.1 kB / 17.91 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2208/0.2208, allocations: 45.91 MB / 344.1 MB, free: 12.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002806/0.0002806, allocations: 8 kB / 418.2 MB, free: 20.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1226, allocations: 63.46 MB / 481.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0005653/0.1232, allocations: 207 kB / 481.8 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.1249, allocations: 1.197 MB / 483 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.886e-05/0.125, allocations: 0 / 483 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.128e-05/0.125, allocations: 0 / 483 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001388/0.1251, allocations: 4 kB / 483 MB, free: 3.895 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.1257, allocations: 187.6 kB / 483.2 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.281e-05/0.1258, allocations: 11.94 kB / 483.2 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.647e-05/0.1258, allocations: 0 / 483.2 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.945e-05/0.1258, allocations: 4 kB / 483.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.551e-05/0.1259, allocations: 7.984 kB / 483.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.544e-06/0.1259, allocations: 0 / 483.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007815/0.1267, allocations: 499.6 kB / 483.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.1267, allocations: 0 / 483.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.466e-05/0.1268, allocations: 29.7 kB / 483.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.127, allocations: 127.7 kB / 483.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.127, allocations: 0 / 483.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.127, allocations: 0 / 483.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.127, allocations: 7.938 kB / 483.9 MB, free: 3.031 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003612/0.1274, allocations: 385 kB / 484.3 MB, free: 2.602 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.1274, allocations: 8.031 kB / 484.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.1275, allocations: 34.56 kB / 484.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.746e-05/0.1275, allocations: 3.984 kB / 484.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.992e-05/0.1276, allocations: 171 kB / 484.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.1276, allocations: 0 / 484.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-06/0.1276, allocations: 0 / 484.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.934e-05/0.1277, allocations: 37.64 kB / 484.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.65e-06/0.1277, allocations: 0 / 484.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-06/0.1277, allocations: 0 / 484.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.1277, allocations: 0 / 484.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.364e-05/0.1278, allocations: 0 / 484.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000135/0.1279, allocations: 157.6 kB / 484.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.534e-05/0.1279, allocations: 14.58 kB / 484.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.398e-05/0.128, allocations: 8.953 kB / 484.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.621e-06/0.128, allocations: 4 kB / 484.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.128, allocations: 60.2 kB / 484.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.011e-06/0.128, allocations: 0 / 484.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001621/0.1282, allocations: 67.39 kB / 484.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.1282, allocations: 81.11 kB / 484.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.339e-05/0.1283, allocations: 97.75 kB / 485 MB, free: 1.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.1283, allocations: 29.7 kB / 485 MB, free: 1.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.153e-05/0.1284, allocations: 88.39 kB / 485.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.417e-05/0.1284, allocations: 0 / 485.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-06/0.1284, allocations: 0 / 485.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.698e-05/0.1285, allocations: 314.8 kB / 485.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.775e-06/0.1285, allocations: 0 / 485.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.985e-06/0.1285, allocations: 7.938 kB / 485.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.268e-05/0.1286, allocations: 25.7 kB / 485.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1286, allocations: 0 / 485.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.704e-05/0.1286, allocations: 71.45 kB / 485.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/0.1287, allocations: 33.7 kB / 485.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.1287, allocations: 0 / 485.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.818e-06/0.1287, allocations: 0 / 485.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.1287, allocations: 0 / 485.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.1287, allocations: 0 / 485.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.563e-05/0.1287, allocations: 3.938 kB / 485.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.1288, allocations: 4 kB / 485.6 MB, free: 1.09 MB / 350.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 7.11e-05/0.1288, allocations: 135.5 kB / 485.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.193e-06/0.1288, allocations: 4.031 kB / 485.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.249e-05/0.1289, allocations: 11.11 kB / 485.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1289, allocations: 3.938 kB / 485.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1289, allocations: 0 / 485.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.1289, allocations: 0 / 485.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.799e-05/0.129, allocations: 149.6 kB / 485.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.129, allocations: 3.984 kB / 485.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.613e-06/0.129, allocations: 4 kB / 485.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.129, allocations: 3.938 kB / 485.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.129, allocations: 0 / 485.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.129, allocations: 0 / 485.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.129, allocations: 4 kB / 485.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.193e-05/0.1291, allocations: 90.83 kB / 486 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.942e-05/0.1292, allocations: 81.06 kB / 486 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.1292, allocations: 4 kB / 486 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.263e-05/0.1292, allocations: 4 kB / 486.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.067e-05/0.1292, allocations: 0 / 486.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.1292, allocations: 0 / 486.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.028e-05/0.1293, allocations: 83.31 kB / 486.1 MB, free: 424 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1293, allocations: 0 / 486.1 MB, free: 424 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003114/0.1296, allocations: 59.98 kB / 486.2 MB, free: 364 kB / 350.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008849/0.1305, allocations: 0.8706 MB / 487.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.049e-05/0.1306, allocations: 59.41 kB / 487.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1306, allocations: 0 / 487.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.426e-05/0.1306, allocations: 59.39 kB / 487.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.1307, allocations: 6.969 kB / 487.2 MB, free: 15.37 MB / 366.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Resources/Data") at compile-time; copying all loaded packages into the FMU Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003805/0.1311, allocations: 140.2 kB / 487.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.1314, allocations: 0.681 MB / 488 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.966e-06/0.1314, allocations: 0 / 488 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.1314, allocations: 11.44 kB / 488 MB, free: 14.47 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1314, allocations: 0 / 488 MB, free: 14.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.153/0.2845, allocations: 2.286 MB / 490.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.2847, allocations: 210.6 kB / 490.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.915/2.2, allocations: 0 / 490.5 MB, free: 12.05 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat does not exist to compare? outputFormat=mat