Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000895/0.0008951, allocations: 101.9 kB / 17.01 MB, free: 6.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008503/0.0008504, allocations: 197.1 kB / 17.91 MB, free: 5.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.3 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.221/0.221, allocations: 45.91 MB / 344.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003168/0.0003168, allocations: 11.94 kB / 418.2 MB, free: 20.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1382, allocations: 63.47 MB / 481.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005435/0.1388, allocations: 187 kB / 481.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003032/0.1419, allocations: 2.245 MB / 484.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.777e-05/0.1419, allocations: 0 / 484.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.768e-06/0.1419, allocations: 0 / 484.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.811e-06/0.1419, allocations: 0 / 484.1 MB, free: 2.852 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.002223/0.1442, allocations: 0.9194 MB / 485 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.461e-05/0.1442, allocations: 4 kB / 485 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.537e-05/0.1443, allocations: 0 / 485 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.729e-05/0.1443, allocations: 3.984 kB / 485 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.134e-05/0.1443, allocations: 0 / 485 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.042e-06/0.1443, allocations: 0 / 485 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001487/0.1458, allocations: 0.9365 MB / 485.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.47e-06/0.1458, allocations: 0 / 485.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.652e-05/0.1459, allocations: 29.7 kB / 486 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003755/0.1463, allocations: 279.4 kB / 486.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1463, allocations: 4 kB / 486.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1463, allocations: 0 / 486.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.1463, allocations: 0 / 486.2 MB, free: 0.6719 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.0003943/0.1467, allocations: 433.3 kB / 486.7 MB, free: 200 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.1468, allocations: 8.031 kB / 486.7 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.872e-05/0.1468, allocations: 30.56 kB / 486.7 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.369e-05/0.1468, allocations: 11.98 kB / 486.7 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.1469, allocations: 163 kB / 486.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.147, allocations: 0 / 486.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.134e-06/0.147, allocations: 7.875 kB / 486.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.807e-05/0.1471, allocations: 33.7 kB / 486.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.1471, allocations: 0 / 486.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.1471, allocations: 0 / 486.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1471, allocations: 0 / 486.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.574e-05/0.1471, allocations: 0 / 486.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00013/0.1472, allocations: 157.6 kB / 487.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.018e-05/0.1473, allocations: 14.58 kB / 487.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.193e-05/0.1473, allocations: 8.797 kB / 487.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.891e-06/0.1473, allocations: 4.094 kB / 487.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.96e-05/0.1474, allocations: 60.27 kB / 487.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1474, allocations: 0 / 487.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001688/0.1476, allocations: 63.52 kB / 487.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.1476, allocations: 81.11 kB / 487.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.746e-05/0.1477, allocations: 89.86 kB / 487.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.1477, allocations: 25.7 kB / 487.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.251e-05/0.1477, allocations: 80.14 kB / 487.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.1477, allocations: 0 / 487.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.1477, allocations: 8 kB / 487.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.514e-05/0.1478, allocations: 310.8 kB / 487.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.028e-05/0.1478, allocations: 3.938 kB / 487.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.488e-06/0.1479, allocations: 4 kB / 487.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.482e-05/0.1479, allocations: 37.64 kB / 487.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1479, allocations: 0 / 487.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.258e-05/0.148, allocations: 55.41 kB / 487.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.148, allocations: 33.7 kB / 487.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.148, allocations: 0 / 487.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.148, allocations: 0 / 487.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.148, allocations: 0 / 487.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.148, allocations: 0 / 487.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.606e-05/0.1481, allocations: 4.094 kB / 487.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.1481, allocations: 4 kB / 487.9 MB, free: 14.71 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 8.414e-05/0.1482, allocations: 147.4 kB / 488.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.287e-06/0.1482, allocations: 3.906 kB / 488.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.488e-06/0.1482, allocations: 7.125 kB / 488.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.1482, allocations: 0 / 488.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1482, allocations: 3.938 kB / 488.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1482, allocations: 0 / 488.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.72e-05/0.1483, allocations: 149.6 kB / 488.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1483, allocations: 7.953 kB / 488.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.645e-06/0.1483, allocations: 4 kB / 488.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.1484, allocations: 4 kB / 488.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-06/0.1484, allocations: 0 / 488.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1484, allocations: 0 / 488.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1484, allocations: 0 / 488.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.091e-05/0.1485, allocations: 90.83 kB / 488.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.799e-05/0.1485, allocations: 81.06 kB / 488.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.1485, allocations: 4.031 kB / 488.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-06/0.1486, allocations: 0 / 488.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.498e-05/0.1486, allocations: 3.984 kB / 488.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.1486, allocations: 4 kB / 488.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.849e-05/0.1486, allocations: 75.31 kB / 488.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1486, allocations: 0 / 488.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000432/0.1491, allocations: 156 kB / 488.6 MB, free: 13.88 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.0009386/0.15, allocations: 0.9074 MB / 489.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.31e-05/0.1501, allocations: 59.39 kB / 489.6 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1501, allocations: 7.938 kB / 489.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.882e-05/0.1501, allocations: 55.41 kB / 489.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.1503, allocations: 4 kB / 489.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003578/0.1506, allocations: 188.1 kB / 489.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.1509, allocations: 0.6692 MB / 490.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.33e-06/0.1509, allocations: 4.125 kB / 490.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.352e-05/0.1509, allocations: 11.44 kB / 490.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1509, allocations: 0 / 490.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.1686, allocations: 5.237 MB / 495.8 MB, free: 6.738 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.1688, allocations: 233.2 kB / 496 MB, free: 6.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.069/2.238, allocations: 0 / 496 MB, free: 6.492 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat does not exist to compare? outputFormat=mat