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.001102/0.001102, allocations: 100.5 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001141/0.001141, allocations: 204.4 kB / 17.9 MB, free: 5.594 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.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2225/0.2225, allocations: 45.92 MB / 344 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002627/0.0002627, allocations: 8 kB / 418.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1319, allocations: 63.46 MB / 481.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0005286/0.1325, allocations: 191 kB / 481.7 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003081/0.1356, allocations: 2.237 MB / 483.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.979e-05/0.1356, allocations: 0 / 483.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.049e-05/0.1356, allocations: 0 / 483.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.498e-06/0.1357, allocations: 0 / 483.9 MB, free: 2.84 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.002127/0.1378, allocations: 0.9148 MB / 484.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.427e-05/0.1378, allocations: 0 / 484.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.991e-05/0.1379, allocations: 0 / 484.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.169e-05/0.1379, allocations: 3.984 kB / 484.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.001e-05/0.1379, allocations: 3.984 kB / 484.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-06/0.138, allocations: 0 / 484.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001354/0.1393, allocations: 0.7607 MB / 485.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.427e-06/0.1393, allocations: 7.984 kB / 485.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.245e-05/0.1394, allocations: 25.7 kB / 485.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004394/0.1398, allocations: 275.5 kB / 485.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.1398, allocations: 0 / 485.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1398, allocations: 0 / 485.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.1399, allocations: 0 / 485.9 MB, free: 0.8477 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.0004141/0.1403, allocations: 437.2 kB / 486.4 MB, free: 376 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.1403, allocations: 12.03 kB / 486.4 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.366e-05/0.1404, allocations: 30.56 kB / 486.4 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.732e-05/0.1404, allocations: 0 / 486.4 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.914e-05/0.1405, allocations: 167 kB / 486.6 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.1405, allocations: 3.938 kB / 486.6 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.1405, allocations: 4 kB / 486.6 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.883e-05/0.1406, allocations: 25.7 kB / 486.6 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.1406, allocations: 0 / 486.6 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.1406, allocations: 0 / 486.6 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.1407, allocations: 7.969 kB / 486.6 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.269e-05/0.1407, allocations: 8 kB / 486.6 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001476/0.1408, allocations: 153.6 kB / 486.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.898e-05/0.1409, allocations: 22.61 kB / 486.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-06/0.1409, allocations: 0 / 486.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.107e-05/0.141, allocations: 56.27 kB / 486.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.141, allocations: 0 / 486.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001837/0.1412, allocations: 71.38 kB / 486.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.1412, allocations: 77.11 kB / 487 MB, free: 15.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.62e-05/0.1413, allocations: 93.98 kB / 487.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.257e-06/0.1413, allocations: 25.7 kB / 487.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.228e-05/0.1413, allocations: 84.08 kB / 487.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.1413, allocations: 4 kB / 487.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.783e-06/0.1413, allocations: 0 / 487.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.817e-05/0.1414, allocations: 310.8 kB / 487.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.586e-06/0.1414, allocations: 3.938 kB / 487.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.1414, allocations: 7.984 kB / 487.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.636e-05/0.1415, allocations: 33.77 kB / 487.5 MB, free: 15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1415, allocations: 3.953 kB / 487.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.8e-05/0.1415, allocations: 59.41 kB / 487.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.1416, allocations: 29.7 kB / 487.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.1416, allocations: 0 / 487.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.726e-06/0.1416, allocations: 0 / 487.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.1416, allocations: 0 / 487.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.1416, allocations: 3.984 kB / 487.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.332e-05/0.1416, allocations: 0 / 487.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.1416, allocations: 4 kB / 487.6 MB, free: 14.88 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 7.595e-05/0.1417, allocations: 135.6 kB / 487.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.179e-05/0.1417, allocations: 15.86 kB / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.204e-06/0.1418, allocations: 3.125 kB / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1418, allocations: 0 / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1418, allocations: 0 / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.1418, allocations: 0 / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.292e-05/0.1419, allocations: 149.7 kB / 487.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1419, allocations: 3.938 kB / 487.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.476e-06/0.1419, allocations: 7.953 kB / 487.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.1419, allocations: 4 kB / 487.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.1419, allocations: 0 / 487.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1419, allocations: 3.938 kB / 487.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1419, allocations: 0 / 487.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.196e-05/0.142, allocations: 90.83 kB / 488 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.962e-05/0.142, allocations: 77.11 kB / 488.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.1421, allocations: 3.953 kB / 488.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-06/0.1421, allocations: 0 / 488.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.179e-05/0.1421, allocations: 8.031 kB / 488.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.1421, allocations: 0 / 488.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.329e-05/0.1421, allocations: 75.28 kB / 488.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1421, allocations: 0 / 488.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004328/0.1426, allocations: 156 kB / 488.3 MB, free: 14.05 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.0009026/0.1435, allocations: 0.9111 MB / 489.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.601e-05/0.1436, allocations: 59.41 kB / 489.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1436, allocations: 4 kB / 489.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.169e-05/0.1436, allocations: 51.41 kB / 489.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.472e-05/0.1437, allocations: 7.953 kB / 489.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003843/0.1441, allocations: 188.2 kB / 489.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.1444, allocations: 0.6731 MB / 490.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.525e-06/0.1444, allocations: 0 / 490.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.369e-05/0.1444, allocations: 7.438 kB / 490.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1444, allocations: 4.062 kB / 490.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.1608, allocations: 5.231 MB / 495.5 MB, free: 6.918 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002488/0.1611, allocations: 226.8 kB / 495.7 MB, free: 6.676 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.041, allocations: 0 / 495.7 MB, free: 6.676 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