Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001048/0.001048, allocations: 94.39 kB / 17 MB, free: 6.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 194.2 kB / 17.91 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.222/0.222, allocations: 45.91 MB / 344.1 MB, free: 12.03 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003545, allocations: 11.94 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1388, allocations: 63.47 MB / 481.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0005725/0.1394, allocations: 195 kB / 481.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.1425, allocations: 2.237 MB / 484.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.913e-05/0.1426, allocations: 0 / 484.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.266e-05/0.1426, allocations: 0 / 484.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.094e-06/0.1426, allocations: 0 / 484.1 MB, free: 2.832 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.002265/0.1449, allocations: 0.9191 MB / 485 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.907e-05/0.1449, allocations: 4 kB / 485 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.595e-05/0.145, allocations: 0 / 485 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.06e-05/0.145, allocations: 7.984 kB / 485 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.31e-05/0.145, allocations: 4 kB / 485 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.492e-06/0.145, allocations: 0 / 485 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0016/0.1466, allocations: 0.9326 MB / 485.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.1467, allocations: 0 / 485.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.745e-05/0.1467, allocations: 29.7 kB / 486 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004063/0.1471, allocations: 271.5 kB / 486.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.1472, allocations: 4 kB / 486.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1472, allocations: 0 / 486.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1472, allocations: 0 / 486.2 MB, free: 0.6602 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.0004317/0.1476, allocations: 445.2 kB / 486.7 MB, free: 176 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1477, allocations: 8.031 kB / 486.7 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.79e-05/0.1477, allocations: 30.56 kB / 486.7 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.704e-05/0.1477, allocations: 4 kB / 486.7 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.1478, allocations: 163 kB / 486.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.1479, allocations: 0 / 486.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.1479, allocations: 3.938 kB / 486.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.685e-05/0.148, allocations: 33.64 kB / 486.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.73e-06/0.148, allocations: 7.938 kB / 486.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.114e-06/0.148, allocations: 0 / 486.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.148, allocations: 0 / 486.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.977e-05/0.148, allocations: 3.984 kB / 486.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.1482, allocations: 153.6 kB / 487.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.617e-05/0.1482, allocations: 14.58 kB / 487.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.265e-05/0.1483, allocations: 8.797 kB / 487.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.721e-06/0.1483, allocations: 0 / 487.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/0.1483, allocations: 64.36 kB / 487.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.1483, allocations: 0 / 487.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002056/0.1485, allocations: 67.39 kB / 487.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.1486, allocations: 77.11 kB / 487.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.451e-05/0.1487, allocations: 89.86 kB / 487.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.1487, allocations: 25.7 kB / 487.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.675e-05/0.1487, allocations: 80.14 kB / 487.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.1487, allocations: 128 / 487.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-06/0.1487, allocations: 4 kB / 487.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1489, allocations: 314.8 kB / 487.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.086e-05/0.1489, allocations: 0 / 487.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.065e-06/0.1489, allocations: 7.922 kB / 487.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.11e-05/0.1489, allocations: 33.66 kB / 487.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.149, allocations: 0 / 487.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.28e-05/0.149, allocations: 59.41 kB / 487.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.384e-05/0.1491, allocations: 33.7 kB / 487.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1491, allocations: 4.094 kB / 487.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.1491, allocations: 0 / 487.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.326e-06/0.1491, allocations: 3.984 kB / 487.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.1491, allocations: 3.984 kB / 487.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.708e-05/0.1491, allocations: 3.984 kB / 487.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.1492, allocations: 4 kB / 487.9 MB, free: 14.68 MB / 366.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 9.999e-05/0.1493, allocations: 135.5 kB / 488.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-06/0.1493, allocations: 3.906 kB / 488.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.053e-05/0.1493, allocations: 3.125 kB / 488.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1493, allocations: 8 kB / 488.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1493, allocations: 3.938 kB / 488.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1493, allocations: 0 / 488.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001129/0.1494, allocations: 149.7 kB / 488.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1495, allocations: 3.953 kB / 488.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.464e-06/0.1495, allocations: 7.938 kB / 488.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.1495, allocations: 0 / 488.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.1495, allocations: 4 kB / 488.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1495, allocations: 0 / 488.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1495, allocations: 3.938 kB / 488.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.095e-05/0.1496, allocations: 94.83 kB / 488.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.1496, allocations: 81.06 kB / 488.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.1497, allocations: 0 / 488.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.1497, allocations: 0 / 488.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.58e-05/0.1497, allocations: 0 / 488.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.1497, allocations: 4 kB / 488.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.651e-05/0.1497, allocations: 75.31 kB / 488.5 MB, free: 14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1497, allocations: 4.031 kB / 488.5 MB, free: 14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004785/0.1502, allocations: 152 kB / 488.7 MB, free: 13.85 MB / 366.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.001044/0.1513, allocations: 0.9093 MB / 489.6 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.807e-05/0.1514, allocations: 55.41 kB / 489.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1514, allocations: 0 / 489.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.228e-05/0.1514, allocations: 55.41 kB / 489.7 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001274/0.1515, allocations: 4.125 kB / 489.7 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003777/0.1519, allocations: 196.1 kB / 489.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.1522, allocations: 0.6692 MB / 490.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.1522, allocations: 0 / 490.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.436e-05/0.1522, allocations: 11.44 kB / 490.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1522, allocations: 0 / 490.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01754/0.1698, allocations: 5.245 MB / 495.8 MB, free: 6.707 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/0.17, allocations: 226.1 kB / 496 MB, free: 6.465 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.167, allocations: 0 / 496 MB, free: 6.465 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat does not exist to compare? outputFormat=mat