Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions",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.0009983/0.0009983, allocations: 96.98 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001159, allocations: 173.8 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.775/1.775, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5101/0.5101, allocations: 43.55 MB / 314.5 MB, free: 9.031 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005884/0.0005886, allocations: 14.97 kB / 384 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1422, allocations: 58.87 MB / 442.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0006268/0.1429, allocations: 212.4 kB / 443 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003082/0.146, allocations: 2.154 MB / 445.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.325e-05/0.1461, allocations: 0 / 445.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.543e-05/0.1461, allocations: 4 kB / 445.2 MB, free: 10.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.092e-06/0.1461, allocations: 0 / 445.2 MB, free: 10.83 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002458/0.1486, allocations: 0.8997 MB / 446.1 MB, free: 9.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.934e-05/0.1486, allocations: 0 / 446.1 MB, free: 9.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.013e-05/0.1487, allocations: 0 / 446.1 MB, free: 9.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.92e-05/0.1487, allocations: 0 / 446.1 MB, free: 9.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.269e-05/0.1487, allocations: 11.88 kB / 446.1 MB, free: 9.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.1488, allocations: 0 / 446.1 MB, free: 9.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.1501, allocations: 0.714 MB / 446.8 MB, free: 9.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.943e-06/0.1501, allocations: 0 / 446.8 MB, free: 9.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.649e-05/0.1501, allocations: 25.7 kB / 446.9 MB, free: 9.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000393/0.1505, allocations: 259.5 kB / 447.1 MB, free: 8.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1505, allocations: 0 / 447.1 MB, free: 8.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1505, allocations: 0 / 447.1 MB, free: 8.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1506, allocations: 0 / 447.1 MB, free: 8.918 MB / 382.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.0003958/0.151, allocations: 425.3 kB / 447.5 MB, free: 8.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.151, allocations: 11.97 kB / 447.5 MB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.059e-05/0.151, allocations: 34.56 kB / 447.6 MB, free: 8.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.968e-05/0.1511, allocations: 11.84 kB / 447.6 MB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.772e-05/0.1512, allocations: 163.1 kB / 447.7 MB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.1512, allocations: 0 / 447.7 MB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-06/0.1512, allocations: 0 / 447.7 MB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.556e-05/0.1513, allocations: 33.69 kB / 447.8 MB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1513, allocations: 11.92 kB / 447.8 MB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.1513, allocations: 0 / 447.8 MB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1513, allocations: 0 / 447.8 MB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.628e-05/0.1514, allocations: 3.953 kB / 447.8 MB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001287/0.1515, allocations: 157.6 kB / 447.9 MB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.675e-05/0.1515, allocations: 22.55 kB / 448 MB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.083e-06/0.1516, allocations: 0 / 448 MB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/0.1516, allocations: 56.27 kB / 448 MB, free: 7.824 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.1516, allocations: 0 / 448 MB, free: 7.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001721/0.1518, allocations: 67.45 kB / 448.1 MB, free: 7.746 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.1519, allocations: 89.17 kB / 448.2 MB, free: 7.641 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.698e-05/0.1519, allocations: 89.86 kB / 448.3 MB, free: 7.543 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.1519, allocations: 25.7 kB / 448.3 MB, free: 7.512 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.902e-05/0.152, allocations: 80.14 kB / 448.4 MB, free: 7.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.152, allocations: 0 / 448.4 MB, free: 7.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.884e-06/0.152, allocations: 0 / 448.4 MB, free: 7.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1521, allocations: 314.8 kB / 448.7 MB, free: 7.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.845e-06/0.1521, allocations: 0 / 448.7 MB, free: 7.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.227e-06/0.1521, allocations: 4 kB / 448.7 MB, free: 7.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.591e-05/0.1522, allocations: 29.77 kB / 448.7 MB, free: 7.074 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1522, allocations: 0 / 448.7 MB, free: 7.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.726e-05/0.1522, allocations: 67.39 kB / 448.8 MB, free: 6.996 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.1523, allocations: 29.7 kB / 448.8 MB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1523, allocations: 0 / 448.8 MB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.1523, allocations: 4 kB / 448.8 MB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.1523, allocations: 3.938 kB / 448.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1523, allocations: 0 / 448.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.589e-05/0.1523, allocations: 3.938 kB / 448.8 MB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.1524, allocations: 4.031 kB / 448.8 MB, free: 6.945 MB / 382.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 9.092e-05/0.1525, allocations: 147.5 kB / 449 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-06/0.1525, allocations: 0 / 449 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.318e-05/0.1525, allocations: 3.125 kB / 449 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1525, allocations: 0 / 449 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1525, allocations: 0 / 449 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1525, allocations: 0 / 449 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.1526, allocations: 157.6 kB / 449.1 MB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1526, allocations: 3.938 kB / 449.1 MB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1526, allocations: 0 / 449.1 MB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1526, allocations: 4 kB / 449.1 MB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.1527, allocations: 0 / 449.1 MB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1527, allocations: 0 / 449.1 MB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1527, allocations: 4 kB / 449.1 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.656e-05/0.1528, allocations: 90.78 kB / 449.2 MB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.825e-05/0.1528, allocations: 77.11 kB / 449.3 MB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.1528, allocations: 4 kB / 449.3 MB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-06/0.1529, allocations: 4.031 kB / 449.3 MB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.444e-05/0.1529, allocations: 3.938 kB / 449.3 MB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-06/0.1529, allocations: 0 / 449.3 MB, free: 6.348 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.24e-05/0.1529, allocations: 75.28 kB / 449.4 MB, free: 6.273 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1529, allocations: 0 / 449.4 MB, free: 6.273 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000446/0.1534, allocations: 140 kB / 449.5 MB, free: 6.137 MB / 382.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.001068/0.1545, allocations: 0.891 MB / 450.4 MB, free: 5.215 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.812e-05/0.1546, allocations: 63.41 kB / 450.5 MB, free: 5.141 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1546, allocations: 0 / 450.5 MB, free: 5.141 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.06e-05/0.1546, allocations: 59.34 kB / 450.5 MB, free: 5.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.414e-05/0.1547, allocations: 3.938 kB / 450.5 MB, free: 5.066 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004014/0.1551, allocations: 176.2 kB / 450.7 MB, free: 4.855 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002627/0.1554, allocations: 0.6731 MB / 451.4 MB, free: 4.156 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.77e-06/0.1554, allocations: 0 / 451.4 MB, free: 4.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.571e-05/0.1554, allocations: 11.44 kB / 451.4 MB, free: 4.148 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1554, allocations: 128 / 451.4 MB, free: 4.148 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2627/0.4182, allocations: 4.871 MB / 456.3 MB, free: 45.7 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.4184, allocations: 219.9 kB / 456.5 MB, free: 45.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.889/2.307, allocations: 3.312 kB / 456.5 MB, free: 45.46 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat does not exist to compare? outputFormat=mat