Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009563/0.0009563, allocations: 200.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 226.5 MB / 243.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007596/0.0007593, allocations: 96.52 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2841/0.2841, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002384/0.0002384, allocations: 11.98 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2525, allocations: 62.96 MB / 0.5159 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0004231/0.253, allocations: 203.7 kB / 0.5161 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.2552, allocations: 2.239 MB / 0.5183 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.594e-05/0.2552, allocations: 0 / 0.5183 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.063e-05/0.2552, allocations: 3.969 kB / 0.5183 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.2552, allocations: 0 / 0.5183 GB, free: 35.54 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001764/0.257, allocations: 0.9144 MB / 0.5192 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.546e-05/0.257, allocations: 2.844 kB / 0.5192 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.381e-05/0.2571, allocations: 0 / 0.5192 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.33e-05/0.2571, allocations: 0 / 0.5192 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.961e-05/0.2571, allocations: 2.875 kB / 0.5192 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.03e-06/0.2571, allocations: 4 kB / 0.5192 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001208/0.2583, allocations: 0.9327 MB / 0.5201 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.585e-06/0.2584, allocations: 3.984 kB / 0.5202 GB, free: 34.72 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.552e-05/0.2584, allocations: 29.41 kB / 0.5202 GB, free: 34.69 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003648/0.2588, allocations: 274 kB / 0.5204 GB, free: 34.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2588, allocations: 0 / 0.5204 GB, free: 34.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2588, allocations: 3.938 kB / 0.5204 GB, free: 34.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.2588, allocations: 3.938 kB / 0.5204 GB, free: 34.59 MB / 378.7 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.0002842/0.2591, allocations: 441.9 kB / 0.5209 GB, free: 34.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.2591, allocations: 8.219 kB / 0.5209 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.095e-05/0.2591, allocations: 30.75 kB / 0.5209 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.912e-05/0.2592, allocations: 3.688 kB / 0.5209 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.95e-05/0.2592, allocations: 165.7 kB / 0.5211 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.2592, allocations: 384 / 0.5211 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.414e-06/0.2593, allocations: 384 / 0.5211 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.709e-05/0.2593, allocations: 36.48 kB / 0.5211 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.2593, allocations: 0 / 0.5211 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-06/0.2593, allocations: 6.969 kB / 0.5211 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.2594, allocations: 0 / 0.5211 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.393e-05/0.2594, allocations: 0 / 0.5211 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.675e-05/0.2595, allocations: 152.1 kB / 0.5213 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.487e-05/0.2595, allocations: 14.58 kB / 0.5213 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.145e-05/0.2595, allocations: 7.266 kB / 0.5213 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-06/0.2595, allocations: 0 / 0.5213 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.2595, allocations: 68.2 kB / 0.5213 GB, free: 33.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.2596, allocations: 3.938 kB / 0.5213 GB, free: 33.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000128/0.2597, allocations: 66.81 kB / 0.5214 GB, free: 33.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/0.2597, allocations: 77.11 kB / 0.5215 GB, free: 33.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.907e-05/0.2597, allocations: 92.48 kB / 0.5216 GB, free: 33.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.732e-06/0.2598, allocations: 25.7 kB / 0.5216 GB, free: 33.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.456e-06/0.2598, allocations: 80.14 kB / 0.5217 GB, free: 33.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.396e-05/0.2598, allocations: 0 / 0.5217 GB, free: 33.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.673e-06/0.2598, allocations: 128 / 0.5217 GB, free: 33.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.834e-05/0.2598, allocations: 321.5 kB / 0.522 GB, free: 32.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.474e-06/0.2598, allocations: 3.422 kB / 0.522 GB, free: 32.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.588e-06/0.2599, allocations: 0 / 0.522 GB, free: 32.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.547e-05/0.2599, allocations: 59.02 kB / 0.522 GB, free: 32.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.2599, allocations: 2.656 kB / 0.522 GB, free: 32.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.581e-05/0.2599, allocations: 61.12 kB / 0.5221 GB, free: 32.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.26, allocations: 46.03 kB / 0.5221 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.26, allocations: 4.094 kB / 0.5221 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.26, allocations: 0 / 0.5221 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.282e-06/0.26, allocations: 2.781 kB / 0.5221 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.26, allocations: 0 / 0.5221 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.394e-05/0.26, allocations: 0 / 0.5221 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.89e-06/0.26, allocations: 0 / 0.5221 GB, free: 32.69 MB / 378.7 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 4.23e-05/0.2601, allocations: 134.2 kB / 0.5223 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.544e-06/0.2601, allocations: 7.266 kB / 0.5223 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.223e-06/0.2601, allocations: 9.562 kB / 0.5223 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.2601, allocations: 4 kB / 0.5223 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.2601, allocations: 0 / 0.5223 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2601, allocations: 4 kB / 0.5223 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.663e-05/0.2602, allocations: 148.3 kB / 0.5224 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2602, allocations: 3.516 kB / 0.5224 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.2602, allocations: 0 / 0.5224 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.2602, allocations: 3.938 kB / 0.5224 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.03e-06/0.2602, allocations: 0 / 0.5224 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2602, allocations: 2.594 kB / 0.5225 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2602, allocations: 3.984 kB / 0.5225 GB, free: 32.33 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.946e-05/0.2603, allocations: 97.81 kB / 0.5225 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.297e-05/0.2603, allocations: 81.05 kB / 0.5226 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.2603, allocations: 0 / 0.5226 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-06/0.2603, allocations: 3.031 kB / 0.5226 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.678e-06/0.2603, allocations: 4 kB / 0.5226 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.2604, allocations: 0 / 0.5226 GB, free: 32.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.758e-06/0.2604, allocations: 75.28 kB / 0.5227 GB, free: 32.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2604, allocations: 0 / 0.5227 GB, free: 32.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004195/0.2608, allocations: 164.7 kB / 0.5229 GB, free: 32 MB / 378.7 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.0006784/0.2615, allocations: 0.9013 MB / 0.5237 GB, free: 31.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.156e-05/0.2616, allocations: 69.22 kB / 0.5238 GB, free: 31.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2616, allocations: 0 / 0.5238 GB, free: 31.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.577e-05/0.2616, allocations: 54.41 kB / 0.5239 GB, free: 31.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001082/0.2617, allocations: 6.969 kB / 0.5239 GB, free: 31.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002704/0.262, allocations: 209.7 kB / 0.5241 GB, free: 30.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.095e-05/0.2621, allocations: 0.6692 MB / 0.5247 GB, free: 30.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.087e-06/0.2621, allocations: 10.28 kB / 0.5247 GB, free: 30.25 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2621, allocations: 0 / 0.5247 GB, free: 30.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.657/2.919, allocations: 4.034 MB / 0.5287 GB, free: 29.8 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches