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.001485/0.001486, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007367/0.0007367, allocations: 94.3 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3388/0.3388, allocations: 43.56 MB / 363.1 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000409/0.0004092, allocations: 12 kB / 432.1 MB, free: 5.508 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1076, allocations: 58.85 MB / 490.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0006005/0.1082, allocations: 204.5 kB / 491.1 MB, free: 10.37 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003086/0.1114, allocations: 2.175 MB / 493.3 MB, free: 8.176 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.003e-05/0.1114, allocations: 0 / 493.3 MB, free: 8.176 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.869e-06/0.1114, allocations: 0 / 493.3 MB, free: 8.176 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.324e-06/0.1114, allocations: 0 / 493.3 MB, free: 8.176 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00225/0.1137, allocations: 0.8884 MB / 494.2 MB, free: 7.285 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.571e-05/0.1137, allocations: 4 kB / 494.2 MB, free: 7.281 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.347e-05/0.1138, allocations: 7.922 kB / 494.2 MB, free: 7.273 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.77e-05/0.1138, allocations: 3.984 kB / 494.2 MB, free: 7.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.271e-05/0.1138, allocations: 7.938 kB / 494.2 MB, free: 7.262 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.1139, allocations: 0 / 494.2 MB, free: 7.262 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001444/0.1153, allocations: 0.8936 MB / 495.1 MB, free: 6.367 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.474e-06/0.1153, allocations: 0 / 495.1 MB, free: 6.367 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.09e-05/0.1154, allocations: 29.69 kB / 495.1 MB, free: 6.332 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004048/0.1158, allocations: 259.5 kB / 495.4 MB, free: 6.078 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1158, allocations: 0 / 495.4 MB, free: 6.078 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1158, allocations: 0 / 495.4 MB, free: 6.078 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.457e-06/0.1158, allocations: 4 kB / 495.4 MB, free: 6.074 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.0004117/0.1162, allocations: 429.2 kB / 495.8 MB, free: 5.602 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.1163, allocations: 8.031 kB / 495.8 MB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.79e-05/0.1163, allocations: 30.75 kB / 495.8 MB, free: 5.555 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.445e-05/0.1163, allocations: 8.844 kB / 495.8 MB, free: 5.547 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.601e-05/0.1164, allocations: 160.4 kB / 496 MB, free: 5.352 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.1165, allocations: 384 / 496 MB, free: 5.352 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.302e-06/0.1165, allocations: 4.312 kB / 496 MB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.023e-05/0.1166, allocations: 45.81 kB / 496.1 MB, free: 5.297 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.1166, allocations: 4 kB / 496.1 MB, free: 5.293 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-06/0.1166, allocations: 0 / 496.1 MB, free: 5.293 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1166, allocations: 0 / 496.1 MB, free: 5.293 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.519e-05/0.1166, allocations: 0 / 496.1 MB, free: 5.293 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001197/0.1168, allocations: 145.7 kB / 496.2 MB, free: 5.102 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.967e-05/0.1168, allocations: 18.56 kB / 496.2 MB, free: 5.074 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.217e-05/0.1168, allocations: 12.78 kB / 496.2 MB, free: 5.059 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.849e-06/0.1168, allocations: 96 / 496.2 MB, free: 5.059 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.1169, allocations: 72.2 kB / 496.3 MB, free: 4.973 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1169, allocations: 0 / 496.3 MB, free: 4.973 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001647/0.1171, allocations: 59.41 kB / 496.4 MB, free: 4.902 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.1171, allocations: 77.11 kB / 496.4 MB, free: 4.809 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.344e-05/0.1172, allocations: 93.84 kB / 496.5 MB, free: 4.707 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.1172, allocations: 25.7 kB / 496.6 MB, free: 4.676 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.483e-05/0.1172, allocations: 80.14 kB / 496.6 MB, free: 4.594 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.1172, allocations: 4.406 kB / 496.6 MB, free: 4.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.448e-06/0.1173, allocations: 4 kB / 496.6 MB, free: 4.586 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1174, allocations: 314.8 kB / 496.9 MB, free: 4.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.1174, allocations: 3.938 kB / 496.9 MB, free: 4.266 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.598e-06/0.1174, allocations: 0 / 496.9 MB, free: 4.266 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.45e-05/0.1174, allocations: 60.27 kB / 497 MB, free: 4.191 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.1174, allocations: 0 / 497 MB, free: 4.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.854e-05/0.1175, allocations: 63.39 kB / 497.1 MB, free: 4.117 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.1176, allocations: 44.8 kB / 497.1 MB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.1176, allocations: 0 / 497.1 MB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.1176, allocations: 0 / 497.1 MB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.248e-06/0.1176, allocations: 0 / 497.1 MB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.1176, allocations: 7.938 kB / 497.1 MB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.674e-05/0.1176, allocations: 4 kB / 497.1 MB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.1176, allocations: 0 / 497.1 MB, free: 4.059 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 8.25e-05/0.1177, allocations: 143.4 kB / 497.3 MB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.192e-05/0.1178, allocations: 11.92 kB / 497.3 MB, free: 3.891 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.06e-05/0.1178, allocations: 7.125 kB / 497.3 MB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1178, allocations: 0 / 497.3 MB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1178, allocations: 0 / 497.3 MB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.1178, allocations: 0 / 497.3 MB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.025e-05/0.1179, allocations: 145.7 kB / 497.4 MB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1179, allocations: 0 / 497.4 MB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1179, allocations: 0 / 497.4 MB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.1179, allocations: 3.938 kB / 497.4 MB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.1179, allocations: 3.984 kB / 497.4 MB, free: 3.684 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1179, allocations: 0 / 497.4 MB, free: 3.684 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1179, allocations: 0 / 497.4 MB, free: 3.684 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.391e-05/0.118, allocations: 90.84 kB / 497.5 MB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.1181, allocations: 85.03 kB / 497.6 MB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.14e-05/0.1181, allocations: 0 / 497.6 MB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.738e-06/0.1181, allocations: 4 kB / 497.6 MB, free: 3.465 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.144e-05/0.1181, allocations: 0 / 497.6 MB, free: 3.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.1181, allocations: 4 kB / 497.6 MB, free: 3.461 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.252e-05/0.1182, allocations: 79.22 kB / 497.7 MB, free: 3.383 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1182, allocations: 4.031 kB / 497.7 MB, free: 3.379 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004766/0.1187, allocations: 136 kB / 497.8 MB, free: 3.246 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.0009272/0.1196, allocations: 0.8827 MB / 498.7 MB, free: 2.332 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.186e-05/0.1197, allocations: 67.34 kB / 498.8 MB, free: 2.254 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1197, allocations: 0 / 498.8 MB, free: 2.254 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.528e-05/0.1197, allocations: 59.33 kB / 498.8 MB, free: 2.184 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.1199, allocations: 7.781 kB / 498.8 MB, free: 2.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003594/0.1202, allocations: 194 kB / 499 MB, free: 1.945 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.1205, allocations: 0.6731 MB / 499.7 MB, free: 1.246 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.25e-05/0.1205, allocations: 7.438 kB / 499.7 MB, free: 1.242 MB / 378.7 MB Notification: Performance of SimCode: time 2.134e-06/0.1205, allocations: 0 / 499.7 MB, free: 1.242 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.756/2.876, allocations: 3.745 MB / 0.4917 GB, free: 41.14 MB / 378.7 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) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches