Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.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.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ConversionBlocks",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.001155/0.001155, allocations: 107.8 kB / 16.41 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.315/1.315, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1953/0.1953, allocations: 43.53 MB / 314.1 MB, free: 472 kB / 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.002525/0.002525, allocations: 60.47 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1313, allocations: 57.8 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003373/0.1347, allocations: 2.089 MB / 0.4895 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002315/0.1371, allocations: 1.313 MB / 0.4907 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.1373, allocations: 4 kB / 0.4907 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.1374, allocations: 23.67 kB / 0.4908 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.1377, allocations: 27.72 kB / 0.4908 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006431/0.1383, allocations: 187.3 kB / 0.491 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002588/0.1386, allocations: 180.1 kB / 0.4911 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.1388, allocations: 103.3 kB / 0.4912 GB, free: 8.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001684/0.139, allocations: 79.64 kB / 0.4913 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.1392, allocations: 87.55 kB / 0.4914 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.962e-05/0.1392, allocations: 20 kB / 0.4914 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004137/0.1396, allocations: 151.9 kB / 0.4916 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.192e-05/0.1397, allocations: 43.84 kB / 0.4916 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.1398, allocations: 95.45 kB / 0.4917 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005106/0.1403, allocations: 306.9 kB / 0.492 GB, free: 7.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.658e-06/0.1403, allocations: 4 kB / 0.492 GB, free: 7.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1403, allocations: 0 / 0.492 GB, free: 7.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.1403, allocations: 3.938 kB / 0.492 GB, free: 7.566 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0007713/0.1411, allocations: 0.5304 MB / 0.4925 GB, free: 6.988 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.1412, allocations: 11.89 kB / 0.4925 GB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.1413, allocations: 79.19 kB / 0.4926 GB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009175/0.1422, allocations: 76.5 kB / 0.4927 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.1424, allocations: 184.1 kB / 0.4928 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.1424, allocations: 29.03 kB / 0.4929 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/0.1425, allocations: 28.38 kB / 0.4929 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.1429, allocations: 238.2 kB / 0.4931 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1429, allocations: 0 / 0.4931 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.143, allocations: 12 kB / 0.4931 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.143, allocations: 4 kB / 0.4931 GB, free: 6.289 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002945/0.1433, allocations: 166.5 kB / 0.4933 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009377/0.1442, allocations: 0.6437 MB / 0.4939 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005237/0.1448, allocations: 243.2 kB / 0.4942 GB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.1449, allocations: 73.3 kB / 0.4942 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.145, allocations: 240 / 0.4942 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.145, allocations: 34.8 kB / 0.4943 GB, free: 5.066 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.292e-06/0.145, allocations: 0 / 0.4943 GB, free: 5.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0004788/0.1455, allocations: 218.2 kB / 0.4945 GB, free: 4.848 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.1455, allocations: 59.28 kB / 0.4945 GB, free: 4.777 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.74e-05/0.1456, allocations: 109.8 kB / 0.4946 GB, free: 4.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.437e-05/0.1457, allocations: 33.7 kB / 0.4947 GB, free: 4.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.38e-05/0.1458, allocations: 148.3 kB / 0.4948 GB, free: 4.473 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.621e-05/0.1458, allocations: 94.64 kB / 0.4949 GB, free: 4.379 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.299e-05/0.1459, allocations: 37.7 kB / 0.4949 GB, free: 4.336 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.146, allocations: 322.8 kB / 0.4952 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.778e-05/0.1461, allocations: 43.97 kB / 0.4953 GB, free: 3.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.783e-05/0.1462, allocations: 39.98 kB / 0.4953 GB, free: 3.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002069/0.1464, allocations: 126.2 kB / 0.4954 GB, free: 3.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1464, allocations: 0 / 0.4954 GB, free: 3.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002715/0.1467, allocations: 165.5 kB / 0.4956 GB, free: 3.637 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1468, allocations: 8 kB / 0.4956 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.1468, allocations: 0 / 0.4956 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.1468, allocations: 0 / 0.4956 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003551/0.1471, allocations: 107.9 kB / 0.4957 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.994e-06/0.1472, allocations: 0 / 0.4957 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.465e-05/0.1472, allocations: 15.84 kB / 0.4957 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.1473, allocations: 8 kB / 0.4957 GB, free: 3.5 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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.0001195/0.1474, allocations: 129.7 kB / 0.4959 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.109e-05/0.1474, allocations: 16.06 kB / 0.4959 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.616e-05/0.1475, allocations: 21.12 kB / 0.4959 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.331e-06/0.1475, allocations: 11.88 kB / 0.4959 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1475, allocations: 4 kB / 0.4959 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1475, allocations: 7.984 kB / 0.4959 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000315/0.1479, allocations: 277.4 kB / 0.4962 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1479, allocations: 0 / 0.4962 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003327/0.1482, allocations: 103.9 kB / 0.4963 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.1482, allocations: 0 / 0.4963 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.1482, allocations: 8 kB / 0.4963 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.1482, allocations: 3.938 kB / 0.4963 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1483, allocations: 4 kB / 0.4963 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003369/0.1486, allocations: 275.3 kB / 0.4966 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.054e-05/0.1487, allocations: 88.95 kB / 0.4966 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.1487, allocations: 4 kB / 0.4966 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.499e-05/0.1488, allocations: 15.92 kB / 0.4967 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.1488, allocations: 7.984 kB / 0.4967 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.1489, allocations: 15.94 kB / 0.4967 GB, free: 2.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.768e-05/0.1489, allocations: 87.27 kB / 0.4968 GB, free: 2.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1489, allocations: 0 / 0.4968 GB, free: 2.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003013/0.1492, allocations: 55.69 kB / 0.4968 GB, free: 2.285 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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.0007762/0.15, allocations: 0.865 MB / 0.4977 GB, free: 1.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002977/0.1503, allocations: 139.9 kB / 0.4978 GB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1503, allocations: 0 / 0.4978 GB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.1505, allocations: 79.89 kB / 0.4979 GB, free: 1.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.1507, allocations: 14.59 kB / 0.4979 GB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.1531, allocations: 1.964 MB / 0.4998 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.1534, allocations: 0.7397 MB / 0.5005 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.1536, allocations: 17.41 kB / 0.5005 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.1537, allocations: 59.42 kB / 0.5006 GB, free: 14.29 MB / 398.1 MB Notification: Performance of SimCode: time 1.242e-06/0.1537, allocations: 4 kB / 0.5006 GB, free: 14.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02163/0.1753, allocations: 2.767 MB / 0.5033 GB, free: 11.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.772/7.947, allocations: 11.92 kB / 0.5033 GB, free: 11.5 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_ConversionBlocks_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_ConversionBlocks.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches