Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001257/0.001257, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001305/0.001305, allocations: 210.4 kB / 18.58 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2232/0.2232, allocations: 46.11 MB / 344.2 MB, free: 11.58 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00259/0.00259, allocations: 76.31 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1299, allocations: 62.47 MB / 480.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002021/0.1319, allocations: 462.5 kB / 480.7 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003826/0.1358, allocations: 2.411 MB / 483.1 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.136e-05/0.1358, allocations: 3.938 kB / 483.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.167e-06/0.1359, allocations: 0 / 483.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.772e-06/0.1359, allocations: 3.938 kB / 483.1 MB, free: 2.266 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.003087/0.139, allocations: 1.144 MB / 484.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.629e-05/0.139, allocations: 4 kB / 484.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.313e-05/0.1391, allocations: 0 / 484.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.797e-05/0.1391, allocations: 0 / 484.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.656e-05/0.1391, allocations: 3.938 kB / 484.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.055e-06/0.1392, allocations: 0 / 484.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001996/0.1412, allocations: 1.018 MB / 485.2 MB, free: 96 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.001e-05/0.1412, allocations: 7.922 kB / 485.3 MB, free: 88 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.38e-05/0.1412, allocations: 0 / 485.3 MB, free: 88 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.1423, allocations: 447.4 kB / 485.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1423, allocations: 0 / 485.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1423, allocations: 0 / 485.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1423, allocations: 0 / 485.7 MB, free: 15.65 MB / 366.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.0005924/0.1429, allocations: 441.4 kB / 486.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.385e-05/0.143, allocations: 12.03 kB / 486.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.459e-05/0.143, allocations: 30.75 kB / 486.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.641e-05/0.143, allocations: 0.9375 kB / 486.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.1432, allocations: 168.3 kB / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.1432, allocations: 384 / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.1432, allocations: 384 / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.473e-05/0.1433, allocations: 37.81 kB / 486.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.1433, allocations: 0 / 486.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.1433, allocations: 8 kB / 486.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.1433, allocations: 0 / 486.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.653e-05/0.1434, allocations: 4 kB / 486.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001496/0.1435, allocations: 141.7 kB / 486.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.236e-05/0.1436, allocations: 26.48 kB / 486.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.944e-05/0.1436, allocations: 8.844 kB / 486.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.1436, allocations: 0 / 486.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.827e-05/0.1437, allocations: 68.27 kB / 486.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.1437, allocations: 4 kB / 486.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000169/0.1439, allocations: 59.41 kB / 486.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.142e-05/0.144, allocations: 77.11 kB / 486.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.886e-05/0.144, allocations: 93.84 kB / 486.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.144, allocations: 25.7 kB / 486.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.007e-05/0.1441, allocations: 80.14 kB / 487 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.1441, allocations: 3.938 kB / 487 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.1441, allocations: 17.72 kB / 487 MB, free: 14.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1443, allocations: 315 kB / 487.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.997e-06/0.1443, allocations: 0 / 487.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.684e-06/0.1443, allocations: 4 kB / 487.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.475e-05/0.1444, allocations: 56.27 kB / 487.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1444, allocations: 0 / 487.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.27e-05/0.1445, allocations: 67.39 kB / 487.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.998e-05/0.1445, allocations: 37.64 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1445, allocations: 0 / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.1445, allocations: 4.094 kB / 487.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1446, allocations: 0 / 487.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.1446, allocations: 3.938 kB / 487.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.598e-05/0.1446, allocations: 3.938 kB / 487.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.1446, allocations: 0 / 487.5 MB, free: 13.61 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.1447, allocations: 139.5 kB / 487.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.094e-05/0.1447, allocations: 3.938 kB / 487.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.105e-06/0.1447, allocations: 3.125 kB / 487.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1447, allocations: 0 / 487.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1448, allocations: 8 kB / 487.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1448, allocations: 3.984 kB / 487.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.1449, allocations: 153.6 kB / 487.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1449, allocations: 0 / 487.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1449, allocations: 0 / 487.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.1449, allocations: 3.938 kB / 487.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.1449, allocations: 4 kB / 487.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1449, allocations: 3.938 kB / 487.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1449, allocations: 0 / 487.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001121/0.1451, allocations: 94.83 kB / 487.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.787e-05/0.1451, allocations: 85.05 kB / 487.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.1451, allocations: 0 / 487.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.379e-05/0.1452, allocations: 4 kB / 487.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.549e-05/0.1452, allocations: 3.938 kB / 488 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-06/0.1452, allocations: 0 / 488 MB, free: 13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.518e-05/0.1452, allocations: 79.28 kB / 488 MB, free: 12.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1453, allocations: 0 / 488 MB, free: 12.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005476/0.1458, allocations: 148 kB / 488.2 MB, free: 12.78 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001386/0.1472, allocations: 0.9092 MB / 489.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001338/0.1474, allocations: 59.34 kB / 489.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/0.1474, allocations: 3.938 kB / 489.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.321e-05/0.1474, allocations: 55.41 kB / 489.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.1476, allocations: 2.062 kB / 489.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005668/0.1481, allocations: 194.6 kB / 489.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.1485, allocations: 0.669 MB / 490.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.191e-05/0.1486, allocations: 3.984 kB / 490.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.798e-05/0.1486, allocations: 11.44 kB / 490.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1486, allocations: 0 / 490.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03275/0.1814, allocations: 5.629 MB / 495.7 MB, free: 5.203 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/8.224, allocations: 5.016 kB / 495.7 MB, free: 5.199 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1)