Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 109.2 kB / 20.48 MB, free: 1.492 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 215 kB / 23.79 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.567/1.567, allocations: 207.6 MB / 234.6 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2355/0.2355, allocations: 44.25 MB / 331.1 MB, free: 9.535 MB / 270.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002594/0.002594, allocations: 65 kB / 468.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1494, allocations: 61.05 MB / 0.5169 GB, free: 7.383 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002102/0.1515, allocations: 494.7 kB / 0.5174 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004007/0.1555, allocations: 2.352 MB / 0.5197 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.824e-05/0.1555, allocations: 0 / 0.5197 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.367e-05/0.1555, allocations: 4 kB / 0.5197 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.732e-06/0.1555, allocations: 0 / 0.5197 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003288/0.1588, allocations: 1.215 MB / 0.5208 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.548e-05/0.1589, allocations: 3.938 kB / 0.5208 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.166e-05/0.1589, allocations: 3.938 kB / 0.5209 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.1589, allocations: 0 / 0.5209 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.668e-05/0.1589, allocations: 11.98 kB / 0.5209 GB, free: 3.281 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.272e-06/0.1589, allocations: 0 / 0.5209 GB, free: 3.281 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.1608, allocations: 0.9872 MB / 0.5218 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.819e-06/0.1608, allocations: 0 / 0.5218 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.971e-05/0.1609, allocations: 12 kB / 0.5218 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008294/0.1617, allocations: 419.4 kB / 0.5222 GB, free: 1.871 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1617, allocations: 4 kB / 0.5222 GB, free: 1.867 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1617, allocations: 0 / 0.5222 GB, free: 1.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1617, allocations: 0 / 0.5222 GB, free: 1.867 MB / 398.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.0006348/0.1623, allocations: 363.3 kB / 0.5226 GB, free: 1.477 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.1624, allocations: 8.031 kB / 0.5226 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.467e-05/0.1624, allocations: 192 / 0.5226 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.933e-05/0.1625, allocations: 34.75 kB / 0.5226 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.221e-05/0.1625, allocations: 4.875 kB / 0.5226 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.1626, allocations: 106.5 kB / 0.5227 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.1626, allocations: 384 / 0.5227 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-06/0.1626, allocations: 384 / 0.5227 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001158/0.1628, allocations: 37.64 kB / 0.5228 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.1628, allocations: 0 / 0.5228 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.1628, allocations: 0 / 0.5228 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1628, allocations: 0 / 0.5228 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.615e-05/0.1628, allocations: 4 kB / 0.5228 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001727/0.163, allocations: 116.8 kB / 0.5229 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.824e-05/0.163, allocations: 26.53 kB / 0.5229 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.796e-05/0.1631, allocations: 4.859 kB / 0.5229 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.1631, allocations: 7.938 kB / 0.5229 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.395e-05/0.1631, allocations: 60.25 kB / 0.523 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1631, allocations: 0 / 0.523 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002313/0.1634, allocations: 67.41 kB / 0.523 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.1634, allocations: 85.03 kB / 0.5231 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.717e-05/0.1635, allocations: 93.86 kB / 0.5232 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.1635, allocations: 25.7 kB / 0.5232 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.535e-05/0.1635, allocations: 80.27 kB / 0.5233 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.1636, allocations: 4 kB / 0.5233 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.963e-05/0.1636, allocations: 9.719 kB / 0.5233 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1637, allocations: 318.8 kB / 0.5236 GB, free: 236 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.073e-05/0.1637, allocations: 0 / 0.5236 GB, free: 236 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.043e-06/0.1638, allocations: 0 / 0.5236 GB, free: 236 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.359e-05/0.1638, allocations: 60.27 kB / 0.5237 GB, free: 160 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1638, allocations: 0 / 0.5237 GB, free: 160 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.097e-05/0.1639, allocations: 75.33 kB / 0.5238 GB, free: 72 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.1639, allocations: 29.7 kB / 0.5238 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.1639, allocations: 0 / 0.5238 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.164, allocations: 3.938 kB / 0.5238 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.164, allocations: 0 / 0.5238 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.164, allocations: 4 kB / 0.5238 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.339e-05/0.164, allocations: 0 / 0.5238 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.164, allocations: 0 / 0.5238 GB, free: 28 kB / 398.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001325/0.1641, allocations: 143.5 kB / 0.5239 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.094e-05/0.1641, allocations: 7.969 kB / 0.5239 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.574e-06/0.1641, allocations: 3 kB / 0.5239 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1641, allocations: 0 / 0.5239 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.1641, allocations: 0 / 0.5239 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1641, allocations: 0 / 0.5239 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.1642, allocations: 120.8 kB / 0.5241 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.1642, allocations: 0 / 0.5241 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.675e-06/0.1643, allocations: 3.938 kB / 0.5241 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.1643, allocations: 4 kB / 0.5241 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.1643, allocations: 0 / 0.5241 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1643, allocations: 0 / 0.5241 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1643, allocations: 4 kB / 0.5241 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001138/0.1644, allocations: 94.77 kB / 0.5242 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-06/0.1644, allocations: 3.938 kB / 0.5242 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.1644, allocations: 4 kB / 0.5242 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.1644, allocations: 3.938 kB / 0.5242 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.389e-05/0.1644, allocations: 4 kB / 0.5242 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.1644, allocations: 0 / 0.5242 GB, free: 15.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.612e-05/0.1645, allocations: 79.31 kB / 0.5243 GB, free: 15.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1645, allocations: 0 / 0.5243 GB, free: 15.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005167/0.165, allocations: 143.6 kB / 0.5244 GB, free: 15.34 MB / 414.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001275/0.1663, allocations: 0.8956 MB / 0.5253 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001108/0.1664, allocations: 59.34 kB / 0.5253 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1664, allocations: 0 / 0.5253 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.878e-05/0.1664, allocations: 59.45 kB / 0.5254 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.1666, allocations: 12 kB / 0.5254 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005201/0.1671, allocations: 178.1 kB / 0.5256 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.1674, allocations: 0.669 MB / 0.5262 GB, free: 13.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.995e-06/0.1674, allocations: 3.984 kB / 0.5262 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.813e-05/0.1674, allocations: 7.438 kB / 0.5262 GB, free: 13.34 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1674, allocations: 4 kB / 0.5262 GB, free: 13.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03029/0.1977, allocations: 5.451 MB / 0.5316 GB, free: 7.879 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/11.91, allocations: 12.03 kB / 0.5316 GB, free: 7.867 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.188630910997745]