Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008442/0.0008442, allocations: 92.05 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001156/0.001156, allocations: 203.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.19/0.19, allocations: 46.18 MB / 345.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002651/0.0002651, allocations: 8 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1067, allocations: 63.56 MB / 483.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.002465/0.1092, allocations: 1.81 MB / 485 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.1115, allocations: 1.363 MB / 486.3 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.1116, allocations: 4 kB / 486.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.294e-05/0.1117, allocations: 19.73 kB / 486.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.1118, allocations: 23.84 kB / 486.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005886/0.1124, allocations: 163.5 kB / 486.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002162/0.1127, allocations: 172.1 kB / 486.7 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.1129, allocations: 91.61 kB / 486.8 MB, free: 428 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.1131, allocations: 67.58 kB / 486.9 MB, free: 360 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.1132, allocations: 71.56 kB / 486.9 MB, free: 288 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.1132, allocations: 4 kB / 487 MB, free: 284 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003506/0.1136, allocations: 135.9 kB / 487.1 MB, free: 148 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.189e-05/0.1136, allocations: 27.86 kB / 487.1 MB, free: 120 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.906e-05/0.1137, allocations: 109.1 kB / 487.2 MB, free: 4 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004617/0.1142, allocations: 295.2 kB / 487.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1142, allocations: 4 kB / 487.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1142, allocations: 0 / 487.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1142, allocations: 0 / 487.5 MB, free: 15.71 MB / 366.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.0005579/0.1148, allocations: 487.4 kB / 488 MB, free: 15.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.1148, allocations: 12.88 kB / 488 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000113/0.1149, allocations: 91.06 kB / 488.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009213/0.1159, allocations: 84.59 kB / 488.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.1161, allocations: 216 kB / 488.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.1161, allocations: 32.95 kB / 488.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.376e-05/0.1162, allocations: 28.38 kB / 488.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.1166, allocations: 230.2 kB / 488.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1166, allocations: 3.984 kB / 488.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.598e-05/0.1166, allocations: 16 kB / 488.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1166, allocations: 15.94 kB / 488.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000302/0.1169, allocations: 162.5 kB / 488.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008817/0.1178, allocations: 0.6516 MB / 489.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000494/0.1183, allocations: 233.3 kB / 489.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.1185, allocations: 69.3 kB / 489.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.1185, allocations: 4.234 kB / 489.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.1185, allocations: 34.8 kB / 489.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 3.386e-06/0.1186, allocations: 4 kB / 489.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0004544/0.119, allocations: 221.4 kB / 490.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.1191, allocations: 59.34 kB / 490.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.404e-05/0.1191, allocations: 109.8 kB / 490.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.1192, allocations: 29.7 kB / 490.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.1193, allocations: 156.2 kB / 490.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.337e-05/0.1193, allocations: 90.66 kB / 490.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/0.1194, allocations: 29.7 kB / 490.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1195, allocations: 322.8 kB / 490.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.875e-05/0.1196, allocations: 43.98 kB / 490.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.1197, allocations: 56.83 kB / 490.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.1199, allocations: 114.2 kB / 491.1 MB, free: 11.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1199, allocations: 4 kB / 491.1 MB, free: 11.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00028/0.1202, allocations: 169.5 kB / 491.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.1202, allocations: 11.98 kB / 491.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1203, allocations: 0 / 491.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.1203, allocations: 0 / 491.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.1206, allocations: 107.8 kB / 491.3 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.699e-06/0.1207, allocations: 4 kB / 491.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.66e-05/0.1207, allocations: 19.83 kB / 491.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.1208, allocations: 4 kB / 491.4 MB, free: 11.62 MB / 366.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.0001114/0.1209, allocations: 125.8 kB / 491.5 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.487e-05/0.1209, allocations: 7.906 kB / 491.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.47e-05/0.121, allocations: 21.53 kB / 491.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.121, allocations: 15.88 kB / 491.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.121, allocations: 0 / 491.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.121, allocations: 7.969 kB / 491.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000304/0.1213, allocations: 289.3 kB / 491.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1213, allocations: 0 / 491.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000331/0.1217, allocations: 99.94 kB / 491.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1217, allocations: 0 / 491.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.1217, allocations: 12 kB / 491.9 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1217, allocations: 3.938 kB / 491.9 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1217, allocations: 0 / 491.9 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003221/0.122, allocations: 275.2 kB / 492.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.291e-05/0.1221, allocations: 88.95 kB / 492.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.1221, allocations: 8 kB / 492.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.136e-05/0.1222, allocations: 15.94 kB / 492.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.399e-05/0.1223, allocations: 19.95 kB / 492.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.1223, allocations: 4 kB / 492.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.829e-05/0.1223, allocations: 83.53 kB / 492.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1223, allocations: 0 / 492.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002696/0.1226, allocations: 55.75 kB / 492.5 MB, free: 10.42 MB / 366.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.0006716/0.1233, allocations: 0.8768 MB / 493.4 MB, free: 9.516 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00025/0.1236, allocations: 135.9 kB / 493.5 MB, free: 9.383 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1236, allocations: 0 / 493.5 MB, free: 9.383 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.1237, allocations: 83.84 kB / 493.6 MB, free: 9.301 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.1239, allocations: 11.94 kB / 493.6 MB, free: 9.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/0.126, allocations: 2.163 MB / 495.7 MB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.1263, allocations: 0.7397 MB / 496.5 MB, free: 6.281 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.1264, allocations: 17.42 kB / 496.5 MB, free: 6.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.578e-05/0.1265, allocations: 67.41 kB / 496.6 MB, free: 6.195 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1265, allocations: 0 / 496.6 MB, free: 6.195 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01219/0.1387, allocations: 2.439 MB / 499 MB, free: 3.855 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/0.139, allocations: 189.6 kB / 499.2 MB, free: 3.598 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/1.982, allocations: 3.938 kB / 499.2 MB, free: 3.594 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ConversionBlocks_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ConversionBlocks.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches