Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.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/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 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(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations",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.002304/0.002309, allocations: 187.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.278/2.278, allocations: 205.4 MB / 222.5 MB, free: 13.75 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.001158/0.001157, allocations: 90.92 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3001/0.3001, allocations: 43.55 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000479/0.0004793, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1319, allocations: 58.85 MB / 490.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0006973/0.1327, allocations: 196.7 kB / 490.5 MB, free: 9.055 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004718/0.1374, allocations: 2.161 MB / 492.7 MB, free: 6.875 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.717e-05/0.1375, allocations: 0 / 492.7 MB, free: 6.875 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.218e-05/0.1375, allocations: 4 kB / 492.7 MB, free: 6.871 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 5.56e-06/0.1375, allocations: 0 / 492.7 MB, free: 6.871 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00368/0.1412, allocations: 0.8925 MB / 493.6 MB, free: 5.977 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 3.964e-05/0.1413, allocations: 7.938 kB / 493.6 MB, free: 5.969 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.349e-05/0.1414, allocations: 7.984 kB / 493.6 MB, free: 5.961 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.894e-05/0.1414, allocations: 0 / 493.6 MB, free: 5.961 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.877e-05/0.1414, allocations: 0 / 493.6 MB, free: 5.961 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.274e-06/0.1414, allocations: 0 / 493.6 MB, free: 5.961 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002241/0.1437, allocations: 0.7335 MB / 494.3 MB, free: 5.227 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.173e-05/0.1437, allocations: 3.984 kB / 494.3 MB, free: 5.223 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.849e-05/0.1438, allocations: 25.7 kB / 494.3 MB, free: 5.191 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006591/0.1445, allocations: 255.5 kB / 494.6 MB, free: 4.941 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1445, allocations: 0 / 494.6 MB, free: 4.941 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1445, allocations: 4 kB / 494.6 MB, free: 4.938 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.1445, allocations: 0 / 494.6 MB, free: 4.938 MB / 330.7 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.0005595/0.1451, allocations: 425 kB / 495 MB, free: 4.469 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.445e-05/0.1452, allocations: 8.031 kB / 495 MB, free: 4.461 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.183e-05/0.1452, allocations: 30.56 kB / 495 MB, free: 4.422 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.063e-05/0.1453, allocations: 3.953 kB / 495 MB, free: 4.418 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.1454, allocations: 167 kB / 495.2 MB, free: 4.215 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.1454, allocations: 0 / 495.2 MB, free: 4.215 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.1454, allocations: 4 kB / 495.2 MB, free: 4.211 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.1455, allocations: 37.69 kB / 495.3 MB, free: 4.168 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.1456, allocations: 3.938 kB / 495.3 MB, free: 4.164 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.1456, allocations: 0 / 495.3 MB, free: 4.164 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1456, allocations: 4 kB / 495.3 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.042e-05/0.1456, allocations: 0 / 495.3 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.1458, allocations: 145.6 kB / 495.4 MB, free: 3.969 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.043e-05/0.1459, allocations: 22.55 kB / 495.4 MB, free: 3.938 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.1459, allocations: 0 / 495.4 MB, free: 3.938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/0.146, allocations: 64.27 kB / 495.5 MB, free: 3.859 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.503e-06/0.146, allocations: 0 / 495.5 MB, free: 3.859 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002143/0.1462, allocations: 63.45 kB / 495.5 MB, free: 3.785 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.721e-05/0.1463, allocations: 77.11 kB / 495.6 MB, free: 3.691 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.855e-05/0.1464, allocations: 89.86 kB / 495.7 MB, free: 3.594 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.1464, allocations: 25.7 kB / 495.7 MB, free: 3.562 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.684e-05/0.1465, allocations: 154.6 kB / 495.9 MB, free: 3.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.1465, allocations: 4.281 kB / 495.9 MB, free: 3.406 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-06/0.1465, allocations: 4.125 kB / 495.9 MB, free: 3.402 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1467, allocations: 318.8 kB / 496.2 MB, free: 3.082 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.204e-05/0.1467, allocations: 3.938 kB / 496.2 MB, free: 3.078 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.206e-06/0.1467, allocations: 0 / 496.2 MB, free: 3.078 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.545e-05/0.1468, allocations: 29.7 kB / 496.2 MB, free: 3.043 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1468, allocations: 0 / 496.2 MB, free: 3.043 MB / 330.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.787e-05/0.1469, allocations: 59.41 kB / 496.3 MB, free: 2.973 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.321e-05/0.147, allocations: 36.3 kB / 496.3 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.147, allocations: 8.078 kB / 496.3 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.147, allocations: 0 / 496.3 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.433e-06/0.147, allocations: 0 / 496.3 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.147, allocations: 4 kB / 496.3 MB, free: 2.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.121e-05/0.1471, allocations: 0 / 496.3 MB, free: 2.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-06/0.1471, allocations: 0 / 496.3 MB, free: 2.922 MB / 330.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: 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 0.0001401/0.1473, allocations: 147.4 kB / 496.5 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.014e-05/0.1473, allocations: 4 kB / 496.5 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.492e-05/0.1473, allocations: 3.125 kB / 496.5 MB, free: 2.754 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1473, allocations: 4 kB / 496.5 MB, free: 2.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1473, allocations: 0 / 496.5 MB, free: 2.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.1473, allocations: 3.938 kB / 496.5 MB, free: 2.746 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001341/0.1475, allocations: 153.6 kB / 496.7 MB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1475, allocations: 3.938 kB / 496.7 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.1475, allocations: 0 / 496.7 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.1475, allocations: 3.984 kB / 496.7 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.1475, allocations: 0 / 496.7 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1475, allocations: 0 / 496.7 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1476, allocations: 0 / 496.7 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001426/0.1477, allocations: 94.83 kB / 496.8 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.863e-05/0.1478, allocations: 81.06 kB / 496.8 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.1478, allocations: 0 / 496.8 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.585e-05/0.1478, allocations: 4 kB / 496.8 MB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.873e-05/0.1478, allocations: 0 / 496.8 MB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.1479, allocations: 3.984 kB / 496.8 MB, free: 2.316 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.639e-05/0.1479, allocations: 79.28 kB / 496.9 MB, free: 2.238 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1479, allocations: 0 / 496.9 MB, free: 2.238 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006875/0.1486, allocations: 140 kB / 497.1 MB, free: 2.102 MB / 330.7 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.001474/0.1501, allocations: 0.8908 MB / 497.9 MB, free: 1.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001308/0.1503, allocations: 63.34 kB / 498 MB, free: 1.105 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1503, allocations: 0 / 498 MB, free: 1.105 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.108e-05/0.1503, allocations: 59.39 kB / 498.1 MB, free: 1.035 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001107/0.1505, allocations: 7.609 kB / 498.1 MB, free: 1.031 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005064/0.151, allocations: 198.1 kB / 498.3 MB, free: 0.793 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.1513, allocations: 0.677 MB / 498.9 MB, free: 92 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.939e-05/0.1514, allocations: 7.438 kB / 499 MB, free: 84 kB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.1514, allocations: 0 / 499 MB, free: 84 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.561/2.712, allocations: 4.035 MB / 0.4912 GB, free: 12.04 MB / 346.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations_res.mat does not exist to compare? outputFormat=mat