Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 93.16 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 188.7 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 223.2 MB / 241.8 MB, free: 14.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.226/0.226, allocations: 44.22 MB / 337.1 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003094, allocations: 10 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1185, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005356/0.119, allocations: 191 kB / 471.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003248/0.1223, allocations: 2.119 MB / 473.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.362e-05/0.1224, allocations: 0 / 473.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.66e-05/0.1224, allocations: 0 / 473.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.985e-06/0.1224, allocations: 0 / 473.8 MB, free: 11.33 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.002751/0.1252, allocations: 0.9023 MB / 474.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.202e-05/0.1252, allocations: 3.938 kB / 474.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.59e-05/0.1253, allocations: 3.984 kB / 474.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.248e-05/0.1253, allocations: 4 kB / 474.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.871e-05/0.1253, allocations: 0 / 474.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.524e-06/0.1254, allocations: 0 / 474.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001626/0.127, allocations: 0.7296 MB / 475.5 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-06/0.127, allocations: 4 kB / 475.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.239e-05/0.1271, allocations: 25.7 kB / 475.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004327/0.1275, allocations: 259.5 kB / 475.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1275, allocations: 0 / 475.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1275, allocations: 0 / 475.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.1275, allocations: 0 / 475.8 MB, free: 9.398 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.000423/0.128, allocations: 429 kB / 476.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.128, allocations: 8.031 kB / 476.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.509e-05/0.1281, allocations: 30.56 kB / 476.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.413e-05/0.1281, allocations: 0 / 476.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.1282, allocations: 163.1 kB / 476.4 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.1282, allocations: 4 kB / 476.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.1282, allocations: 3.953 kB / 476.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.617e-05/0.1283, allocations: 29.64 kB / 476.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1284, allocations: 3.984 kB / 476.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.1284, allocations: 4 kB / 476.4 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.1284, allocations: 3.984 kB / 476.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.56e-05/0.1284, allocations: 3.938 kB / 476.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001566/0.1286, allocations: 149.7 kB / 476.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.5e-05/0.1286, allocations: 18.61 kB / 476.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.651e-06/0.1286, allocations: 0 / 476.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.504e-05/0.1287, allocations: 64.16 kB / 476.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1287, allocations: 0 / 476.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001725/0.1289, allocations: 63.45 kB / 476.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.1289, allocations: 81.11 kB / 476.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.875e-05/0.129, allocations: 93.98 kB / 476.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.129, allocations: 29.7 kB / 476.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.599e-05/0.129, allocations: 80.14 kB / 477 MB, free: 7.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.1291, allocations: 288 / 477 MB, free: 7.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-06/0.1291, allocations: 0 / 477 MB, free: 7.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.1292, allocations: 310.8 kB / 477.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.17e-05/0.1293, allocations: 3.984 kB / 477.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.504e-06/0.1293, allocations: 4 kB / 477.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.545e-05/0.1293, allocations: 33.7 kB / 477.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.1293, allocations: 0 / 477.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.111e-05/0.1294, allocations: 63.41 kB / 477.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.315e-05/0.1294, allocations: 29.7 kB / 477.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1295, allocations: 0 / 477.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.1295, allocations: 3.953 kB / 477.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.422e-06/0.1295, allocations: 7.984 kB / 477.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.1295, allocations: 3.938 kB / 477.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.163e-05/0.1295, allocations: 3.938 kB / 477.5 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.1295, allocations: 0 / 477.5 MB, free: 7.441 MB / 350.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 0.0001241/0.1297, allocations: 140.1 kB / 477.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.908e-06/0.1297, allocations: 3.906 kB / 477.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.674e-05/0.1297, allocations: 7.078 kB / 477.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1297, allocations: 3.953 kB / 477.6 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1297, allocations: 0 / 477.6 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1297, allocations: 0 / 477.6 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/0.1299, allocations: 149.7 kB / 477.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.1299, allocations: 4 kB / 477.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-07/0.1299, allocations: 0 / 477.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1299, allocations: 4 kB / 477.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.1299, allocations: 0 / 477.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.1299, allocations: 0 / 477.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.13, allocations: 7.891 kB / 477.8 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001266/0.1301, allocations: 94.83 kB / 477.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.385e-05/0.1301, allocations: 77.11 kB / 477.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.1302, allocations: 4 kB / 477.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.029e-05/0.1302, allocations: 3.938 kB / 477.9 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.584e-05/0.1302, allocations: 4.031 kB / 477.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.1302, allocations: 3.953 kB / 478 MB, free: 6.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.95e-05/0.1303, allocations: 75.28 kB / 478 MB, free: 6.762 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1303, allocations: 0 / 478 MB, free: 6.762 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005392/0.1308, allocations: 144 kB / 478.2 MB, free: 6.621 MB / 350.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.001072/0.1319, allocations: 0.8836 MB / 479 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.618e-05/0.132, allocations: 67.41 kB / 479.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.132, allocations: 0 / 479.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.951e-05/0.132, allocations: 55.41 kB / 479.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.03e-05/0.1321, allocations: 0 / 479.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000351/0.1325, allocations: 164.3 kB / 479.3 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.1327, allocations: 0.6731 MB / 480 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.981e-06/0.1328, allocations: 0 / 480 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.925e-05/0.1328, allocations: 7.438 kB / 480 MB, free: 4.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1328, allocations: 8 kB / 480 MB, free: 4.652 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01675/0.1495, allocations: 4.888 MB / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002949/0.1499, allocations: 230.4 kB / 485.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.035, allocations: 0 / 485.1 MB, free: 15.64 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat does not exist to compare? outputFormat=mat