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.00115/0.00115, allocations: 117.2 kB / 17.78 MB, free: 5.254 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: 184.2 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.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2928/0.2928, allocations: 44.18 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2943, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.002836/0.2972, allocations: 2.089 MB / 0.5205 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.299, allocations: 1.307 MB / 0.5218 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.2991, allocations: 3.281 kB / 0.5218 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.193e-05/0.2992, allocations: 24.38 kB / 0.5218 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001448/0.2994, allocations: 39.84 kB / 0.5218 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005317/0.2999, allocations: 181.4 kB / 0.522 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00019/0.3001, allocations: 186.3 kB / 0.5222 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.3003, allocations: 99.27 kB / 0.5223 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.3005, allocations: 65.95 kB / 0.5223 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.3006, allocations: 99.92 kB / 0.5224 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.897e-05/0.3006, allocations: 19.44 kB / 0.5224 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003067/0.301, allocations: 145.2 kB / 0.5226 GB, free: 480 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.495e-05/0.301, allocations: 41.8 kB / 0.5226 GB, free: 452 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.698e-05/0.3011, allocations: 94.17 kB / 0.5227 GB, free: 388 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004309/0.3015, allocations: 314.6 kB / 0.523 GB, free: 248 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3015, allocations: 1.188 kB / 0.523 GB, free: 248 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3015, allocations: 0 / 0.523 GB, free: 248 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.3016, allocations: 3.938 kB / 0.523 GB, free: 244 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.0006416/0.3022, allocations: 0.5213 MB / 0.5235 GB, free: 15.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.3022, allocations: 14.97 kB / 0.5235 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000105/0.3024, allocations: 81.14 kB / 0.5236 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008796/0.3032, allocations: 72.97 kB / 0.5237 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.3034, allocations: 192.1 kB / 0.5239 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.3034, allocations: 24.97 kB / 0.5239 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/0.3035, allocations: 29.12 kB / 0.5239 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004348/0.3039, allocations: 238.2 kB / 0.5242 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.3039, allocations: 0 / 0.5242 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.598e-05/0.304, allocations: 15.83 kB / 0.5242 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.304, allocations: 7.812 kB / 0.5242 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003401/0.3043, allocations: 168 kB / 0.5243 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009629/0.3053, allocations: 0.6453 MB / 0.525 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005291/0.3059, allocations: 228.1 kB / 0.5252 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.306, allocations: 71.98 kB / 0.5253 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.306, allocations: 8.453 kB / 0.5253 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.3061, allocations: 39.3 kB / 0.5253 GB, free: 14.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.503e-06/0.3061, allocations: 0 / 0.5253 GB, free: 14.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0004625/0.3065, allocations: 219.6 kB / 0.5255 GB, free: 14.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.3066, allocations: 59.98 kB / 0.5256 GB, free: 14.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.019e-05/0.3067, allocations: 105.7 kB / 0.5257 GB, free: 14.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.3067, allocations: 31.08 kB / 0.5257 GB, free: 14.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.275e-05/0.3068, allocations: 158.2 kB / 0.5258 GB, free: 14.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.647e-05/0.3069, allocations: 96.45 kB / 0.5259 GB, free: 14.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.974e-05/0.307, allocations: 43.55 kB / 0.526 GB, free: 14.13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.3071, allocations: 325.7 kB / 0.5263 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.989e-05/0.3072, allocations: 37.98 kB / 0.5263 GB, free: 13.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.039e-05/0.3073, allocations: 46.11 kB / 0.5264 GB, free: 13.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.3075, allocations: 120.8 kB / 0.5265 GB, free: 13.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3075, allocations: 1.375 kB / 0.5265 GB, free: 13.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002833/0.3078, allocations: 167.7 kB / 0.5266 GB, free: 13.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.3078, allocations: 4.5 kB / 0.5266 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3078, allocations: 0.6094 kB / 0.5267 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.3078, allocations: 0.9688 kB / 0.5267 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.3082, allocations: 107.1 kB / 0.5268 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.3083, allocations: 1.312 kB / 0.5268 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.392e-05/0.3083, allocations: 16.66 kB / 0.5268 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.3084, allocations: 4.469 kB / 0.5268 GB, free: 13.63 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.0001084/0.3085, allocations: 126.7 kB / 0.5269 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.157e-05/0.3085, allocations: 13.5 kB / 0.5269 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.3086, allocations: 22.39 kB / 0.5269 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3086, allocations: 7.75 kB / 0.5269 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3086, allocations: 0 / 0.5269 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.3086, allocations: 5.266 kB / 0.5269 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003306/0.3089, allocations: 292.8 kB / 0.5272 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.309, allocations: 0.7031 kB / 0.5272 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003609/0.3093, allocations: 98.64 kB / 0.5273 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3093, allocations: 1.156 kB / 0.5273 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.3094, allocations: 5.281 kB / 0.5273 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.3094, allocations: 5.797 kB / 0.5273 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3094, allocations: 4 kB / 0.5273 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003481/0.3097, allocations: 269.3 kB / 0.5276 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.254e-05/0.3098, allocations: 88.36 kB / 0.5277 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.3098, allocations: 7.484 kB / 0.5277 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.807e-05/0.3099, allocations: 10.39 kB / 0.5277 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.553e-05/0.31, allocations: 14.22 kB / 0.5277 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.31, allocations: 8.562 kB / 0.5277 GB, free: 12.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.129e-05/0.31, allocations: 88.77 kB / 0.5278 GB, free: 12.83 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.31, allocations: 3.938 kB / 0.5278 GB, free: 12.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003011/0.3104, allocations: 62.77 kB / 0.5279 GB, free: 12.8 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.0007581/0.3111, allocations: 0.8669 MB / 0.5287 GB, free: 12.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002848/0.3114, allocations: 135.6 kB / 0.5288 GB, free: 12.03 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3114, allocations: 0 / 0.5288 GB, free: 12.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.3116, allocations: 81.52 kB / 0.5289 GB, free: 12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.3118, allocations: 14.95 kB / 0.5289 GB, free: 11.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.3141, allocations: 1.975 MB / 0.5309 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.3145, allocations: 0.7411 MB / 0.5316 GB, free: 9.773 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000103/0.3146, allocations: 15.75 kB / 0.5316 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.3147, allocations: 68.34 kB / 0.5317 GB, free: 9.707 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3147, allocations: 4 kB / 0.5317 GB, free: 9.703 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/0.334, allocations: 2.728 MB / 0.5343 GB, free: 8.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.066/8.4, allocations: 6.828 kB / 0.5343 GB, free: 8.266 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