Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_trunk_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_trunk_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 226.5 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007543/0.0007543, allocations: 93.12 kB / 296.7 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002676, allocations: 8 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2119, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.00125/0.2132, allocations: 1.222 MB / 409.3 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005893/0.2138, allocations: 0.4884 MB / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.817e-05/0.2139, allocations: 0 / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.73e-05/0.2139, allocations: 20.61 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.175e-05/0.214, allocations: 10.02 kB / 409.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001189/0.2141, allocations: 31.92 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.186e-05/0.2142, allocations: 47.84 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.033e-05/0.2143, allocations: 15.98 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.2144, allocations: 32.52 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.776e-05/0.2145, allocations: 24.77 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.2145, allocations: 0 / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.755e-05/0.2146, allocations: 22.08 kB / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.2146, allocations: 4 kB / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.924e-05/0.2146, allocations: 45.56 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.434e-05/0.2147, allocations: 47.91 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2147, allocations: 0 / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2147, allocations: 0 / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.2147, allocations: 5.188 kB / 410.1 MB, free: 25.65 MB / 298.7 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.0004916/0.2152, allocations: 387.5 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.2153, allocations: 8.031 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.494e-05/0.2153, allocations: 38.69 kB / 410.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.776e-05/0.2153, allocations: 4.938 kB / 410.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.236e-05/0.2154, allocations: 178.2 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.2155, allocations: 384 / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.2155, allocations: 8.375 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002731/0.2158, allocations: 105 kB / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2158, allocations: 0 / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.2158, allocations: 0 / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2158, allocations: 0 / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003088/0.2161, allocations: 104.4 kB / 410.9 MB, free: 24.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003526/0.2165, allocations: 320.6 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002248/0.2167, allocations: 78.53 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.2169, allocations: 56.95 kB / 411.4 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.2169, allocations: 0 / 411.4 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.394e-05/0.2169, allocations: 34.56 kB / 411.4 MB, free: 24.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 8.41e-07/0.2169, allocations: 0 / 411.4 MB, free: 24.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005436/0.2175, allocations: 185.6 kB / 411.6 MB, free: 24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.2175, allocations: 51.41 kB / 411.7 MB, free: 23.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.693e-05/0.2176, allocations: 109.8 kB / 411.8 MB, free: 23.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.177e-06/0.2176, allocations: 29.7 kB / 411.8 MB, free: 23.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.022e-05/0.2176, allocations: 92.03 kB / 411.9 MB, free: 23.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.2177, allocations: 19.75 kB / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/0.2177, allocations: 0 / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.454e-05/0.2177, allocations: 322.8 kB / 412.2 MB, free: 23.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.2179, allocations: 47.97 kB / 412.3 MB, free: 23.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.218, allocations: 47.95 kB / 412.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002732/0.2183, allocations: 104.8 kB / 412.4 MB, free: 23.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2183, allocations: 0 / 412.4 MB, free: 23.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003165/0.2186, allocations: 137.8 kB / 412.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.2186, allocations: 4 kB / 412.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2187, allocations: 4.062 kB / 412.6 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.2187, allocations: 3.938 kB / 412.6 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.2188, allocations: 31.97 kB / 412.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.2188, allocations: 0 / 412.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.289e-05/0.2189, allocations: 19.98 kB / 412.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.2189, allocations: 3.938 kB / 412.6 MB, free: 22.95 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.146e-05/0.219, allocations: 117.8 kB / 412.7 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.343e-05/0.219, allocations: 4 kB / 412.7 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003734/0.2194, allocations: 161.4 kB / 412.9 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2194, allocations: 0 / 412.9 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2194, allocations: 0 / 412.9 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.2194, allocations: 4.359 kB / 412.9 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.2196, allocations: 193.5 kB / 413.1 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2196, allocations: 0 / 413.1 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.2197, allocations: 27.97 kB / 413.1 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2197, allocations: 7.938 kB / 413.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.2197, allocations: 0 / 413.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2197, allocations: 4 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2197, allocations: 0 / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003509/0.2201, allocations: 243.3 kB / 413.4 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.878e-05/0.2201, allocations: 81.02 kB / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.2201, allocations: 4 kB / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.2203, allocations: 19.98 kB / 413.5 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.176e-05/0.2203, allocations: 7.984 kB / 413.5 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-06/0.2203, allocations: 4 kB / 413.5 MB, free: 21.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.604e-05/0.2203, allocations: 91.2 kB / 413.6 MB, free: 21.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2204, allocations: 4 kB / 413.6 MB, free: 21.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002042/0.2206, allocations: 8 kB / 413.6 MB, free: 21.88 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005255/0.2211, allocations: 0.7748 MB / 414.3 MB, free: 21.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003326/0.2214, allocations: 103.9 kB / 414.4 MB, free: 20.97 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2214, allocations: 4 kB / 414.5 MB, free: 20.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.2216, allocations: 63.89 kB / 414.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.2219, allocations: 18.09 kB / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004174/0.2223, allocations: 240.5 kB / 414.8 MB, free: 20.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.2224, allocations: 0.6926 MB / 415.5 MB, free: 19.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.295e-05/0.2225, allocations: 19.44 kB / 415.5 MB, free: 19.88 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2225, allocations: 0 / 415.5 MB, free: 19.88 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.413/2.635, allocations: 1.135 MB / 416.6 MB, free: 18.74 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches