Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 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.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001392/0.001392, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001519/0.001519, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.8 MB, free: 10.49 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.2322/0.2322, allocations: 46.11 MB / 344.2 MB, free: 11.54 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.002236/0.002236, allocations: 82.05 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1126, allocations: 62.46 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001637/0.1143, allocations: 455.8 kB / 480.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003592/0.1179, allocations: 2.422 MB / 483.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.686e-05/0.1179, allocations: 0 / 483.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.269e-05/0.1179, allocations: 3.938 kB / 483.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.398e-06/0.118, allocations: 0 / 483.1 MB, free: 2.234 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.002905/0.1209, allocations: 1.14 MB / 484.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.499e-05/0.1209, allocations: 0 / 484.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.42e-05/0.121, allocations: 8 kB / 484.2 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.633e-05/0.121, allocations: 0 / 484.2 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.837e-05/0.121, allocations: 3.984 kB / 484.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.173e-06/0.1211, allocations: 3.938 kB / 484.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.1229, allocations: 1.007 MB / 485.2 MB, free: 72 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.598e-06/0.1229, allocations: 3.938 kB / 485.2 MB, free: 68 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.426e-05/0.123, allocations: 11.98 kB / 485.3 MB, free: 56 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007005/0.1237, allocations: 447.4 kB / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1237, allocations: 0 / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1237, allocations: 0 / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1237, allocations: 0 / 485.7 MB, free: 15.62 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.0005107/0.1242, allocations: 445.4 kB / 486.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1243, allocations: 8.031 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.81e-05/0.1243, allocations: 30.75 kB / 486.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.515e-05/0.1244, allocations: 0.9375 kB / 486.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.1245, allocations: 168.4 kB / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.1245, allocations: 8.375 kB / 486.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.405e-06/0.1246, allocations: 384 / 486.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.1247, allocations: 29.83 kB / 486.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.1247, allocations: 0 / 486.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.1247, allocations: 4 kB / 486.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1247, allocations: 0 / 486.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.119e-05/0.1248, allocations: 0 / 486.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001699/0.1249, allocations: 149.6 kB / 486.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.487e-05/0.125, allocations: 22.61 kB / 486.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.932e-05/0.125, allocations: 12.8 kB / 486.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.765e-06/0.125, allocations: 0 / 486.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.716e-05/0.1251, allocations: 64.27 kB / 486.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1251, allocations: 0 / 486.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000194/0.1253, allocations: 63.33 kB / 486.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.1254, allocations: 81.11 kB / 486.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.65e-05/0.1255, allocations: 93.98 kB / 486.8 MB, free: 14.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.1255, allocations: 25.7 kB / 486.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.1255, allocations: 84.14 kB / 487 MB, free: 14.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.1256, allocations: 0 / 487 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.756e-05/0.1256, allocations: 13.72 kB / 487 MB, free: 14.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.1258, allocations: 310.8 kB / 487.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.056e-05/0.1258, allocations: 0 / 487.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.456e-06/0.1258, allocations: 3.984 kB / 487.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.211e-05/0.1259, allocations: 64.33 kB / 487.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1259, allocations: 0 / 487.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.84e-05/0.126, allocations: 67.34 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.837e-05/0.126, allocations: 33.64 kB / 487.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.126, allocations: 0 / 487.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.1261, allocations: 11.97 kB / 487.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.1261, allocations: 0 / 487.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.1261, allocations: 3.984 kB / 487.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.634e-05/0.1261, allocations: 3.938 kB / 487.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.325e-06/0.1261, allocations: 4.031 kB / 487.5 MB, free: 13.57 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.0001126/0.1262, allocations: 135.5 kB / 487.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-06/0.1263, allocations: 3.938 kB / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.618e-06/0.1263, allocations: 3.125 kB / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.1263, allocations: 0 / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1263, allocations: 0 / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1263, allocations: 0 / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.1264, allocations: 157.6 kB / 487.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1265, allocations: 0 / 487.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.067e-06/0.1265, allocations: 4 kB / 487.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1265, allocations: 7.938 kB / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.1265, allocations: 0 / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1265, allocations: 0 / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1265, allocations: 7.938 kB / 487.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001232/0.1266, allocations: 90.77 kB / 487.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.1267, allocations: 81.05 kB / 487.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.1267, allocations: 4 kB / 487.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.085e-06/0.1267, allocations: 4.031 kB / 487.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.226e-05/0.1267, allocations: 0 / 487.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.1268, allocations: 0 / 487.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.997e-05/0.1268, allocations: 79.27 kB / 488 MB, free: 12.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1268, allocations: 0 / 488 MB, free: 12.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004728/0.1273, allocations: 148 kB / 488.2 MB, free: 12.75 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.001117/0.1284, allocations: 0.9031 MB / 489.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001058/0.1285, allocations: 75.27 kB / 489.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1285, allocations: 0 / 489.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.1287, allocations: 59.41 kB / 489.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.1288, allocations: 0 / 489.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004008/0.1292, allocations: 186.4 kB / 489.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.1295, allocations: 0.669 MB / 490.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.33e-06/0.1295, allocations: 0 / 490.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.519e-05/0.1295, allocations: 7.438 kB / 490.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1295, allocations: 8.125 kB / 490.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02986/0.1594, allocations: 5.631 MB / 495.7 MB, free: 5.184 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.812/7.972, allocations: 6.484 kB / 495.7 MB, free: 5.184 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1)