Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_4_0_0_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.001312/0.001312, allocations: 117.2 kB / 17.78 MB, free: 5.258 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.001384/0.001384, allocations: 185 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2444/0.2444, allocations: 44.17 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 67.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.3782, allocations: 60.82 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003216/0.3815, allocations: 2.088 MB / 0.5205 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.3834, allocations: 1.315 MB / 0.5218 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.3835, allocations: 3.406 kB / 0.5218 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.734e-05/0.3836, allocations: 24.98 kB / 0.5218 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.3838, allocations: 32.2 kB / 0.5218 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007009/0.3845, allocations: 184.3 kB / 0.522 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002824/0.3848, allocations: 182 kB / 0.5222 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.3851, allocations: 100 kB / 0.5223 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.3852, allocations: 69.77 kB / 0.5223 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.3854, allocations: 92.5 kB / 0.5224 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.3854, allocations: 19.08 kB / 0.5224 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004194/0.3858, allocations: 149.7 kB / 0.5226 GB, free: 500 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.728e-05/0.3859, allocations: 41.52 kB / 0.5226 GB, free: 472 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.386, allocations: 97.78 kB / 0.5227 GB, free: 404 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005496/0.3866, allocations: 311.1 kB / 0.523 GB, free: 268 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.3866, allocations: 0 / 0.523 GB, free: 268 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3866, allocations: 0 / 0.523 GB, free: 268 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.3866, allocations: 4.938 kB / 0.523 GB, free: 264 kB / 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.0007616/0.3874, allocations: 0.5217 MB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.3874, allocations: 9.562 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001395/0.3876, allocations: 86.42 kB / 0.5236 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009032/0.3885, allocations: 76.19 kB / 0.5237 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.3887, allocations: 192 kB / 0.5239 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.837e-05/0.3887, allocations: 25.75 kB / 0.5239 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.3888, allocations: 28.81 kB / 0.5239 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004729/0.3893, allocations: 233.2 kB / 0.5242 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.3893, allocations: 9.828 kB / 0.5242 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.205e-05/0.3893, allocations: 14.25 kB / 0.5242 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.3893, allocations: 7.75 kB / 0.5242 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003183/0.3897, allocations: 160.2 kB / 0.5243 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009913/0.3907, allocations: 0.6478 MB / 0.525 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000527/0.3912, allocations: 226.7 kB / 0.5252 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.3913, allocations: 70.66 kB / 0.5253 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.3914, allocations: 6.984 kB / 0.5253 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.3914, allocations: 32.69 kB / 0.5253 GB, free: 14.7 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.934e-06/0.3914, allocations: 1.375 kB / 0.5253 GB, free: 14.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005073/0.3919, allocations: 223.5 kB / 0.5255 GB, free: 14.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.392, allocations: 58.09 kB / 0.5256 GB, free: 14.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.617e-05/0.3921, allocations: 103.3 kB / 0.5257 GB, free: 14.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.3921, allocations: 31.08 kB / 0.5257 GB, free: 14.4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.3923, allocations: 161.8 kB / 0.5258 GB, free: 14.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.591e-05/0.3923, allocations: 96.64 kB / 0.5259 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.97e-05/0.3924, allocations: 42.92 kB / 0.526 GB, free: 14.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.3926, allocations: 320.9 kB / 0.5263 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.3927, allocations: 43.73 kB / 0.5263 GB, free: 13.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.373e-05/0.3928, allocations: 44.73 kB / 0.5264 GB, free: 13.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.3931, allocations: 118.1 kB / 0.5265 GB, free: 13.76 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3931, allocations: 4 kB / 0.5265 GB, free: 13.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003106/0.3934, allocations: 167.4 kB / 0.5266 GB, free: 13.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.3934, allocations: 9.062 kB / 0.5266 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.3934, allocations: 1 kB / 0.5267 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.3934, allocations: 0.875 kB / 0.5267 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003981/0.3939, allocations: 105.8 kB / 0.5268 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.3939, allocations: 5.281 kB / 0.5268 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.359e-05/0.3939, allocations: 18.78 kB / 0.5268 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.394, allocations: 4.281 kB / 0.5268 GB, free: 13.65 MB / 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: 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.0001245/0.3941, allocations: 126.1 kB / 0.5269 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.922e-05/0.3941, allocations: 16.89 kB / 0.5269 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.448e-05/0.3942, allocations: 23.02 kB / 0.5269 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.3942, allocations: 11.09 kB / 0.5269 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.3942, allocations: 0 / 0.5269 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.3943, allocations: 1.969 kB / 0.5269 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003413/0.3946, allocations: 291.9 kB / 0.5272 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3946, allocations: 0.7812 kB / 0.5272 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003409/0.395, allocations: 98.64 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.395, allocations: 1.969 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.395, allocations: 6.156 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.395, allocations: 4.688 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.395, allocations: 0 / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003381/0.3953, allocations: 273 kB / 0.5276 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.415e-05/0.3954, allocations: 90.2 kB / 0.5277 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.3954, allocations: 6.172 kB / 0.5277 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.979e-05/0.3955, allocations: 10.23 kB / 0.5277 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.584e-05/0.3956, allocations: 12.86 kB / 0.5277 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.3956, allocations: 5.281 kB / 0.5277 GB, free: 12.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.028e-05/0.3957, allocations: 88.56 kB / 0.5278 GB, free: 12.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3957, allocations: 1.281 kB / 0.5278 GB, free: 12.85 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002956/0.396, allocations: 60.83 kB / 0.5279 GB, free: 12.82 MB / 398.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.0007679/0.3967, allocations: 0.8646 MB / 0.5287 GB, free: 12.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002746/0.397, allocations: 139.1 kB / 0.5288 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.397, allocations: 3.938 kB / 0.5288 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001234/0.3972, allocations: 78.2 kB / 0.5289 GB, free: 12.03 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.3974, allocations: 14.53 kB / 0.5289 GB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.3998, allocations: 1.979 MB / 0.5309 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.4002, allocations: 0.7419 MB / 0.5316 GB, free: 9.797 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.4003, allocations: 14.94 kB / 0.5316 GB, free: 9.789 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.4004, allocations: 65.47 kB / 0.5317 GB, free: 9.734 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4004, allocations: 0 / 0.5317 GB, free: 9.734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02401/0.4244, allocations: 2.722 MB / 0.5343 GB, free: 8.301 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.222, allocations: 17.95 kB / 0.5343 GB, free: 8.289 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Blocks_ConversionBlocks.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks_res.csv","/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_4.0.0_ModelicaTest.Blocks.ConversionBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches