Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",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.0007916/0.0007918, allocations: 92.36 kB / 17 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007616/0.0007617, allocations: 179 kB / 17.89 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.2 MB / 241.9 MB, free: 320 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2266/0.2266, allocations: 44.23 MB / 337.2 MB, free: 2.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003133/0.0003133, allocations: 8.219 kB / 409.7 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1216, allocations: 61.91 MB / 471.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005372/0.1222, allocations: 191 kB / 471.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.1252, allocations: 2.131 MB / 474 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.892e-05/0.1252, allocations: 0 / 474 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.624e-05/0.1252, allocations: 3.938 kB / 474 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.134e-06/0.1252, allocations: 7.938 kB / 474 MB, free: 11.3 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function ‘ModelicaTest.ComplexMath.ComplexFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.002126/0.1274, allocations: 0.8957 MB / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.797e-05/0.1274, allocations: 0 / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.606e-05/0.1275, allocations: 0 / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.825e-05/0.1275, allocations: 4 kB / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.917e-05/0.1275, allocations: 3.984 kB / 474.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.833e-06/0.1275, allocations: 4 kB / 474.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001344/0.1289, allocations: 0.8897 MB / 475.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.594e-06/0.1289, allocations: 7.875 kB / 475.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.971e-05/0.1289, allocations: 25.7 kB / 475.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003662/0.1293, allocations: 255.6 kB / 476 MB, free: 9.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.1293, allocations: 3.938 kB / 476.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1293, allocations: 7.938 kB / 476.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1293, allocations: 0 / 476.1 MB, free: 9.207 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.0004046/0.1298, allocations: 421.1 kB / 476.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.1298, allocations: 8.031 kB / 476.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.083e-05/0.1298, allocations: 34.5 kB / 476.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.229e-05/0.1299, allocations: 0 / 476.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.273e-05/0.13, allocations: 163.1 kB / 476.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.13, allocations: 0 / 476.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.13, allocations: 7.953 kB / 476.7 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.604e-05/0.1301, allocations: 29.7 kB / 476.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.1301, allocations: 3.938 kB / 476.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-06/0.1301, allocations: 0 / 476.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.1301, allocations: 8 kB / 476.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.563e-05/0.1302, allocations: 0 / 476.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.1303, allocations: 145.7 kB / 476.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.223e-05/0.1303, allocations: 22.61 kB / 476.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.357e-05/0.1304, allocations: 4.859 kB / 476.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-06/0.1304, allocations: 4 kB / 476.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.078e-05/0.1304, allocations: 60.22 kB / 477 MB, free: 8.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.044e-06/0.1304, allocations: 0 / 477 MB, free: 8.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001784/0.1306, allocations: 67.39 kB / 477 MB, free: 8.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.1307, allocations: 85.11 kB / 477.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.406e-05/0.1307, allocations: 89.86 kB / 477.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.1308, allocations: 25.7 kB / 477.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.754e-05/0.1308, allocations: 88.25 kB / 477.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.83e-05/0.1308, allocations: 288 / 477.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.623e-06/0.1308, allocations: 0 / 477.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1309, allocations: 310.8 kB / 477.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.985e-06/0.131, allocations: 0 / 477.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.609e-06/0.131, allocations: 4 kB / 477.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.416e-05/0.131, allocations: 25.7 kB / 477.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.131, allocations: 0 / 477.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.533e-05/0.1311, allocations: 71.42 kB / 477.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.1311, allocations: 33.7 kB / 477.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1311, allocations: 3.953 kB / 477.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.899e-06/0.1311, allocations: 4 kB / 477.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.1311, allocations: 0 / 477.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1311, allocations: 0 / 477.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.657e-05/0.1312, allocations: 3.938 kB / 477.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.1312, allocations: 0 / 477.7 MB, free: 7.25 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 8.339e-05/0.1313, allocations: 144 kB / 477.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.854e-06/0.1313, allocations: 7.844 kB / 477.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.323e-05/0.1313, allocations: 15.06 kB / 477.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1313, allocations: 3.953 kB / 477.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1313, allocations: 0 / 477.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.1313, allocations: 0 / 477.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.234e-05/0.1314, allocations: 149.7 kB / 478.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1314, allocations: 0 / 478.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1314, allocations: 0 / 478.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.1314, allocations: 0 / 478.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.1314, allocations: 4 kB / 478.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.1315, allocations: 0 / 478.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.1315, allocations: 7.953 kB / 478.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.605e-05/0.1316, allocations: 94.77 kB / 478.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.1316, allocations: 77.11 kB / 478.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.1316, allocations: 4 kB / 478.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-06/0.1316, allocations: 0 / 478.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.403e-05/0.1317, allocations: 3.953 kB / 478.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.1317, allocations: 0 / 478.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.088e-05/0.1317, allocations: 79.31 kB / 478.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1317, allocations: 0 / 478.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004079/0.1321, allocations: 136 kB / 478.5 MB, free: 6.43 MB / 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.0009008/0.133, allocations: 0.8914 MB / 479.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.463e-05/0.1331, allocations: 63.39 kB / 479.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1331, allocations: 0 / 479.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.408e-05/0.1332, allocations: 55.41 kB / 479.5 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.1333, allocations: 4.125 kB / 479.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000327/0.1336, allocations: 168.3 kB / 479.6 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.1339, allocations: 0.677 MB / 480.3 MB, free: 4.457 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.149e-06/0.1339, allocations: 0 / 480.3 MB, free: 4.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.365e-05/0.1339, allocations: 7.438 kB / 480.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1339, allocations: 0 / 480.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.1519, allocations: 4.9 MB / 485.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/0.1522, allocations: 238.9 kB / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.985/2.137, allocations: 4.062 kB / 485.5 MB, free: 15.41 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat does not exist to compare? outputFormat=mat