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.001181/0.001181, allocations: 112.2 kB / 17.28 MB, free: 6.184 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.00132/0.00132, allocations: 181.3 kB / 18.19 MB, free: 5.266 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.399/1.399, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.00116/0.00116, allocations: 52.14 kB / 280.2 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1073, allocations: 46.62 MB / 326.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002843/0.1102, allocations: 1.553 MB / 328.4 MB, free: 3.133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008338/0.1111, allocations: 0.5432 MB / 329 MB, free: 2.582 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.448e-05/0.1111, allocations: 0 / 329 MB, free: 2.582 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.1113, allocations: 11.94 kB / 329 MB, free: 2.57 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.721e-05/0.1114, allocations: 7.922 kB / 329 MB, free: 2.562 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.1116, allocations: 35.97 kB / 329 MB, free: 2.527 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001034/0.1117, allocations: 59.84 kB / 329.1 MB, free: 2.469 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.1118, allocations: 12 kB / 329.1 MB, free: 2.457 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.112, allocations: 27.91 kB / 329.1 MB, free: 2.43 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.623e-05/0.112, allocations: 35.84 kB / 329.1 MB, free: 2.395 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.774e-05/0.1121, allocations: 8 kB / 329.2 MB, free: 2.387 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.24e-05/0.1121, allocations: 19.94 kB / 329.2 MB, free: 2.367 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.803e-05/0.1121, allocations: 15.92 kB / 329.2 MB, free: 2.352 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.765e-05/0.1122, allocations: 27.86 kB / 329.2 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001379/0.1123, allocations: 59.84 kB / 329.3 MB, free: 2.266 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1123, allocations: 4 kB / 329.3 MB, free: 2.262 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1124, allocations: 0 / 329.3 MB, free: 2.262 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1124, allocations: 3.938 kB / 329.3 MB, free: 2.258 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.0006233/0.113, allocations: 387.4 kB / 329.7 MB, free: 1.832 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.113, allocations: 8.031 kB / 329.7 MB, free: 1.824 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.1e-05/0.1131, allocations: 38.75 kB / 329.7 MB, free: 1.777 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.654e-05/0.1131, allocations: 4.844 kB / 329.7 MB, free: 1.773 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.1132, allocations: 176.3 kB / 329.9 MB, free: 1.562 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.1133, allocations: 4.375 kB / 329.9 MB, free: 1.559 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.1133, allocations: 4.375 kB / 329.9 MB, free: 1.555 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002647/0.1136, allocations: 89.77 kB / 330 MB, free: 1.461 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1136, allocations: 0 / 330 MB, free: 1.461 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.1136, allocations: 0 / 330 MB, free: 1.461 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1136, allocations: 0 / 330 MB, free: 1.461 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002988/0.1139, allocations: 83.86 kB / 330.1 MB, free: 1.379 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004126/0.1143, allocations: 320.6 kB / 330.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.1146, allocations: 74.53 kB / 330.4 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.1147, allocations: 44.98 kB / 330.5 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.1148, allocations: 4 kB / 330.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.1148, allocations: 30.56 kB / 330.5 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.1148, allocations: 0 / 330.5 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.000539/0.1153, allocations: 153.5 kB / 330.7 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.1154, allocations: 51.41 kB / 330.7 MB, free: 0.625 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.127e-05/0.1155, allocations: 113.8 kB / 330.8 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.1155, allocations: 25.7 kB / 330.9 MB, free: 484 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.075e-05/0.1156, allocations: 88.5 kB / 330.9 MB, free: 392 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.1156, allocations: 19.66 kB / 331 MB, free: 372 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.114e-05/0.1156, allocations: 25.7 kB / 331 MB, free: 340 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1158, allocations: 322.7 kB / 331.3 MB, free: 8 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.1159, allocations: 39.89 kB / 331.3 MB, free: 15.97 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.1161, allocations: 35.97 kB / 331.4 MB, free: 15.93 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/0.1163, allocations: 80.78 kB / 331.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1164, allocations: 0 / 331.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003103/0.1167, allocations: 110 kB / 331.6 MB, free: 15.74 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1167, allocations: 8 kB / 331.6 MB, free: 15.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1167, allocations: 0 / 331.6 MB, free: 15.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.1167, allocations: 7.938 kB / 331.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.1169, allocations: 27.97 kB / 331.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.1169, allocations: 0 / 331.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.079e-05/0.117, allocations: 11.98 kB / 331.6 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.117, allocations: 3.938 kB / 331.6 MB, free: 15.68 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.519e-05/0.1171, allocations: 113.8 kB / 331.7 MB, free: 15.56 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.722e-05/0.1171, allocations: 7.906 kB / 331.7 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003728/0.1175, allocations: 129.6 kB / 331.9 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1175, allocations: 4 kB / 331.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1175, allocations: 0 / 331.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1175, allocations: 0 / 331.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.1177, allocations: 189.5 kB / 332.1 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.1177, allocations: 0 / 332.1 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.1178, allocations: 31.92 kB / 332.1 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1178, allocations: 0 / 332.1 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.1179, allocations: 4 kB / 332.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1179, allocations: 0 / 332.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1179, allocations: 0 / 332.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003648/0.1182, allocations: 219.3 kB / 332.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.774e-05/0.1183, allocations: 85.02 kB / 332.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.887e-05/0.1183, allocations: 4 kB / 332.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.1184, allocations: 15.97 kB / 332.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.935e-05/0.1185, allocations: 4 kB / 332.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.1185, allocations: 0 / 332.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.24e-05/0.1185, allocations: 95.2 kB / 332.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1185, allocations: 3.938 kB / 332.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002144/0.1187, allocations: 12.28 kB / 332.5 MB, free: 14.68 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.0006028/0.1194, allocations: 0.7593 MB / 333.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003519/0.1197, allocations: 99.84 kB / 333.4 MB, free: 13.8 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1197, allocations: 0 / 333.4 MB, free: 13.8 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001506/0.1199, allocations: 43.97 kB / 333.4 MB, free: 13.75 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.1202, allocations: 8 kB / 333.4 MB, free: 13.75 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004809/0.1207, allocations: 223.6 kB / 333.7 MB, free: 13.49 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.1209, allocations: 0.692 MB / 334.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.682e-05/0.121, allocations: 8 kB / 334.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.355e-05/0.121, allocations: 27.36 kB / 334.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.121, allocations: 0 / 334.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01137/0.1324, allocations: 1.787 MB / 336.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.1326, allocations: 216.1 kB / 336.4 MB, free: 10.68 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/1.992, allocations: 0 / 336.4 MB, free: 10.68 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches