Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001443/0.001443, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.115/2.115, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 93 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3273/0.3273, allocations: 43.49 MB / 353.6 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.882e-05/1.883e-05, allocations: 0 / 418.3 MB, free: 40.98 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4002/0.4002, allocations: 58.86 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1649/0.5652, allocations: 88.02 MB / 0.5519 GB, free: 11.2 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.5655, allocations: 71.41 kB / 0.552 GB, free: 11.14 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04641/0.6119, allocations: 9.731 MB / 0.5615 GB, free: 1.398 MB / 395.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.612, allocations: 4 kB / 0.5615 GB, free: 1.395 MB / 395.1 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.612, allocations: 3.938 kB / 0.5615 GB, free: 1.391 MB / 395.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.0007357/0.6128, allocations: 471.9 kB / 0.562 GB, free: 0.8789 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.6128, allocations: 8.031 kB / 0.562 GB, free: 0.8711 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.6129, allocations: 4 kB / 0.562 GB, free: 0.8672 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.613, allocations: 167 kB / 0.5621 GB, free: 0.6641 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.613, allocations: 0 / 0.5621 GB, free: 0.6641 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.613, allocations: 0 / 0.5621 GB, free: 0.6641 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.865e-05/0.6131, allocations: 3.984 kB / 0.5621 GB, free: 0.6602 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.077e-05/0.6132, allocations: 33.7 kB / 0.5622 GB, free: 0.6211 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.6132, allocations: 3.938 kB / 0.5622 GB, free: 0.6172 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.6132, allocations: 0 / 0.5622 GB, free: 0.6172 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.6132, allocations: 0 / 0.5622 GB, free: 0.6172 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001337/0.6134, allocations: 134.1 kB / 0.5623 GB, free: 460 kB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.405e-05/0.6134, allocations: 22.59 kB / 0.5623 GB, free: 428 kB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.636e-05/0.6134, allocations: 4.859 kB / 0.5623 GB, free: 420 kB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.016e-06/0.6135, allocations: 0 / 0.5623 GB, free: 420 kB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.571e-05/0.6135, allocations: 64.7 kB / 0.5624 GB, free: 340 kB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 1.583e-06/0.6135, allocations: 0 / 0.5624 GB, free: 340 kB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001801/0.6137, allocations: 33.77 kB / 0.5624 GB, free: 300 kB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.6138, allocations: 85.05 kB / 0.5625 GB, free: 196 kB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.94e-05/0.6139, allocations: 85 kB / 0.5626 GB, free: 104 kB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.6139, allocations: 25.7 kB / 0.5626 GB, free: 72 kB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.359e-05/0.614, allocations: 150.6 kB / 0.5628 GB, free: 15.92 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.614, allocations: 4 kB / 0.5628 GB, free: 15.92 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-06/0.614, allocations: 4.031 kB / 0.5628 GB, free: 15.91 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.6141, allocations: 314.8 kB / 0.5631 GB, free: 15.6 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.128e-06/0.6142, allocations: 0 / 0.5631 GB, free: 15.6 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.923e-06/0.6142, allocations: 0 / 0.5631 GB, free: 15.6 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.764e-05/0.6142, allocations: 4 kB / 0.5631 GB, free: 15.59 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.6142, allocations: 0 / 0.5631 GB, free: 15.59 MB / 411.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.563e-05/0.6143, allocations: 33.66 kB / 0.5631 GB, free: 15.55 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.6144, allocations: 33.7 kB / 0.5631 GB, free: 15.52 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.6144, allocations: 4.094 kB / 0.5631 GB, free: 15.51 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.6144, allocations: 3.984 kB / 0.5631 GB, free: 15.51 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.392e-06/0.6144, allocations: 0 / 0.5631 GB, free: 15.51 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.6145, allocations: 0 / 0.5631 GB, free: 15.51 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.298e-05/0.6145, allocations: 4 kB / 0.5631 GB, free: 15.5 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.6145, allocations: 0 / 0.5631 GB, free: 15.5 MB / 411.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 () * 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.519e-05/0.6146, allocations: 130.7 kB / 0.5633 GB, free: 15.36 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.736e-05/0.6147, allocations: 49.52 kB / 0.5633 GB, free: 15.31 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.03e-05/0.6147, allocations: 3.984 kB / 0.5633 GB, free: 15.3 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.472e-05/0.6148, allocations: 7.781 kB / 0.5633 GB, free: 15.3 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.6148, allocations: 4 kB / 0.5633 GB, free: 15.29 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.6148, allocations: 0 / 0.5633 GB, free: 15.29 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.6148, allocations: 0 / 0.5633 GB, free: 15.29 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.332e-05/0.6149, allocations: 122.2 kB / 0.5634 GB, free: 15.14 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.6149, allocations: 0 / 0.5634 GB, free: 15.14 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.771e-06/0.6149, allocations: 3.953 kB / 0.5634 GB, free: 15.13 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.6149, allocations: 3.938 kB / 0.5635 GB, free: 15.13 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.615, allocations: 4 kB / 0.5635 GB, free: 15.12 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.615, allocations: 3.984 kB / 0.5635 GB, free: 15.12 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.615, allocations: 0 / 0.5635 GB, free: 15.12 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001156/0.6151, allocations: 65.08 kB / 0.5635 GB, free: 15.04 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.373e-05/0.6152, allocations: 77.11 kB / 0.5636 GB, free: 14.95 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.6152, allocations: 7.953 kB / 0.5636 GB, free: 14.94 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.48e-05/0.6152, allocations: 3.984 kB / 0.5636 GB, free: 14.93 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.6153, allocations: 0 / 0.5636 GB, free: 14.93 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.6153, allocations: 0 / 0.5636 GB, free: 14.93 MB / 411.1 MB Notification: Performance of sorting global known variables: time 3.478e-05/0.6153, allocations: 83.31 kB / 0.5637 GB, free: 14.85 MB / 411.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6153, allocations: 0 / 0.5637 GB, free: 14.85 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0008942/0.6162, allocations: 179.8 kB / 0.5639 GB, free: 14.68 MB / 411.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) * 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.001577/0.6178, allocations: 0.8934 MB / 0.5647 GB, free: 13.75 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0001083/0.618, allocations: 55.41 kB / 0.5648 GB, free: 13.69 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.618, allocations: 3.938 kB / 0.5648 GB, free: 13.68 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 4.303e-05/0.618, allocations: 63.34 kB / 0.5648 GB, free: 13.61 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.6182, allocations: 8.078 kB / 0.5649 GB, free: 13.6 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005873/0.6188, allocations: 203.1 kB / 0.565 GB, free: 13.36 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.6191, allocations: 0.669 MB / 0.5657 GB, free: 12.66 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.162e-05/0.6191, allocations: 11.44 kB / 0.5657 GB, free: 12.65 MB / 411.1 MB Notification: Performance of SimCode: time 1.132e-06/0.6191, allocations: 0 / 0.5657 GB, free: 12.65 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.566/3.185, allocations: 4.049 MB / 0.5697 GB, free: 8.598 MB / 411.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations_res.mat does not exist to compare? outputFormat=mat