Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.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) 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(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock",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.001257/0.001257, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001275/0.001275, allocations: 191.9 kB / 18.51 MB, free: 4.504 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.465/1.465, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.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.001398/0.001398, allocations: 52.14 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1074, allocations: 46.62 MB / 327.4 MB, free: 4.402 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.003106/0.1105, allocations: 1.504 MB / 328.9 MB, free: 2.875 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00099/0.1115, allocations: 0.5431 MB / 329.4 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.614e-05/0.1116, allocations: 0 / 329.4 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000151/0.1118, allocations: 15.94 kB / 329.4 MB, free: 2.309 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.264e-05/0.1119, allocations: 15.86 kB / 329.4 MB, free: 2.293 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001915/0.1121, allocations: 35.91 kB / 329.5 MB, free: 2.258 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 9.493e-05/0.1122, allocations: 55.84 kB / 329.5 MB, free: 2.203 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.926e-05/0.1123, allocations: 12 kB / 329.5 MB, free: 2.191 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.1125, allocations: 35.89 kB / 329.6 MB, free: 2.156 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.502e-05/0.1125, allocations: 31.84 kB / 329.6 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.1125, allocations: 8 kB / 329.6 MB, free: 2.117 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.588e-05/0.1126, allocations: 16 kB / 329.6 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.998e-05/0.1127, allocations: 11.94 kB / 329.6 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.316e-05/0.1127, allocations: 31.86 kB / 329.7 MB, free: 2.059 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.1129, allocations: 67.78 kB / 329.7 MB, free: 1.992 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1129, allocations: 0 / 329.7 MB, free: 1.992 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.1129, allocations: 0 / 329.7 MB, free: 1.992 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.1129, allocations: 3.938 kB / 329.7 MB, free: 1.988 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000653/0.1136, allocations: 383.5 kB / 330.1 MB, free: 1.566 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.1136, allocations: 8.031 kB / 330.1 MB, free: 1.559 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.811e-05/0.1137, allocations: 42.73 kB / 330.2 MB, free: 1.508 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.1137, allocations: 8.844 kB / 330.2 MB, free: 1.5 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.1139, allocations: 168.4 kB / 330.3 MB, free: 1.297 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.1139, allocations: 8.312 kB / 330.3 MB, free: 1.289 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.1139, allocations: 4.375 kB / 330.4 MB, free: 1.285 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002936/0.1142, allocations: 85.77 kB / 330.4 MB, free: 1.195 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.1143, allocations: 0 / 330.4 MB, free: 1.195 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.1143, allocations: 4 kB / 330.4 MB, free: 1.191 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.1143, allocations: 0 / 330.4 MB, free: 1.191 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003181/0.1146, allocations: 83.91 kB / 330.5 MB, free: 1.109 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004868/0.1151, allocations: 316.5 kB / 330.8 MB, free: 0.75 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/0.1154, allocations: 74.53 kB / 330.9 MB, free: 0.668 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.1156, allocations: 44.94 kB / 330.9 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.1156, allocations: 0 / 330.9 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.1156, allocations: 38.59 kB / 331 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 9.32e-07/0.1156, allocations: 0 / 331 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006008/0.1162, allocations: 153.5 kB / 331.1 MB, free: 428 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.1163, allocations: 55.41 kB / 331.2 MB, free: 360 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.777e-05/0.1164, allocations: 105.8 kB / 331.3 MB, free: 244 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.1164, allocations: 33.7 kB / 331.3 MB, free: 204 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.1165, allocations: 88.14 kB / 331.4 MB, free: 112 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.787e-05/0.1165, allocations: 23.64 kB / 331.4 MB, free: 88 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.1165, allocations: 17.72 kB / 331.5 MB, free: 64 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1167, allocations: 318.8 kB / 331.8 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.1168, allocations: 35.95 kB / 331.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.117, allocations: 39.91 kB / 331.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.1173, allocations: 81.16 kB / 331.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1173, allocations: 4 kB / 331.9 MB, free: 15.58 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003533/0.1177, allocations: 113.6 kB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.1177, allocations: 4 kB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.1177, allocations: 4 kB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1177, allocations: 7.938 kB / 332 MB, free: 15.45 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.1179, allocations: 15.98 kB / 332.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.1179, allocations: 0 / 332.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.31e-05/0.118, allocations: 15.92 kB / 332.1 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.118, allocations: 7.922 kB / 332.1 MB, free: 15.41 MB / 286.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 (5): * Single equations (assignments): 5 * 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 7.839e-05/0.1181, allocations: 117.8 kB / 332.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.1181, allocations: 7.906 kB / 332.2 MB, free: 15.28 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004041/0.1185, allocations: 129.6 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1186, allocations: 0 / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1186, allocations: 4 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.1186, allocations: 3.984 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000193/0.1188, allocations: 182 kB / 332.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1188, allocations: 4 kB / 332.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.1189, allocations: 27.92 kB / 332.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1189, allocations: 0 / 332.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.1189, allocations: 11.92 kB / 332.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1189, allocations: 0 / 332.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.119, allocations: 0 / 332.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004019/0.1194, allocations: 215.3 kB / 332.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.072e-05/0.1194, allocations: 89 kB / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.1194, allocations: 4 kB / 332.9 MB, free: 14.53 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.1196, allocations: 11.98 kB / 332.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.1196, allocations: 0 / 332.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.1196, allocations: 7.984 kB / 332.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.547e-05/0.1197, allocations: 91.22 kB / 333 MB, free: 14.42 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1197, allocations: 4 kB / 333 MB, free: 14.42 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000228/0.1199, allocations: 12 kB / 333 MB, free: 14.41 MB / 286.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 (7): * Single equations (assignments): 7 * 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.0007131/0.1206, allocations: 0.7514 MB / 333.7 MB, free: 13.63 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003786/0.121, allocations: 91.84 kB / 333.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.121, allocations: 0 / 333.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.1212, allocations: 47.95 kB / 333.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.1216, allocations: 12.19 kB / 333.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005262/0.1221, allocations: 191.6 kB / 334.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.1224, allocations: 0.6885 MB / 334.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.697e-05/0.1225, allocations: 11.94 kB / 334.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.595e-05/0.1225, allocations: 27.36 kB / 334.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1225, allocations: 0 / 334.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.1431, allocations: 1.977 MB / 336.8 MB, free: 10.47 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.638/7.781, allocations: 19.56 kB / 336.8 MB, free: 10.45 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches