Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007878/0.0007878, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009145/0.0009145, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9013/0.9013, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.179e-05/2.342e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002034/0.002057, allocations: 1.514 MB / 326 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007404/0.002798, allocations: 0.4947 MB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.191e-05/0.00284, allocations: 0 / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001058/0.002945, allocations: 27.8 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.289e-05/0.003008, allocations: 11.86 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001533/0.003162, allocations: 35.86 kB / 326.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.636e-05/0.003238, allocations: 59.83 kB / 326.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.00334, allocations: 11.98 kB / 326.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.003513, allocations: 51.89 kB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.258e-05/0.003565, allocations: 19.91 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.607e-05/0.003581, allocations: 8 kB / 326.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.805e-05/0.003629, allocations: 12 kB / 326.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.031e-05/0.00365, allocations: 11.98 kB / 326.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.11e-05/0.003671, allocations: 15.94 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.003805, allocations: 79.69 kB / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.00381, allocations: 8 kB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.003811, allocations: 0 / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.003815, allocations: 0 / 326.8 MB, free: 13.57 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.0005308/0.004346, allocations: 310.1 kB / 327.1 MB, free: 13.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.004385, allocations: 15.98 kB / 327.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.766e-05/0.004413, allocations: 30.75 kB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.449e-05/0.004437, allocations: 8.891 kB / 327.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.53e-05/0.004513, allocations: 113.7 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.004528, allocations: 8.359 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-06/0.004537, allocations: 384 / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.004709, allocations: 86.14 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.872e-06/0.004716, allocations: 4.188 kB / 327.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.004727, allocations: 12.12 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.004731, allocations: 0 / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.004897, allocations: 83.8 kB / 327.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003297/0.005227, allocations: 263.8 kB / 327.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.005381, allocations: 70.53 kB / 327.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.322e-05/0.005464, allocations: 44.94 kB / 327.9 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.005479, allocations: 7.984 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.005497, allocations: 30.56 kB / 327.9 MB, free: 12.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 9.32e-07/0.005498, allocations: 96 / 327.9 MB, free: 12.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.000327/0.005825, allocations: 161.7 kB / 328.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.609e-05/0.005851, allocations: 51.41 kB / 328.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.775e-05/0.005919, allocations: 109.8 kB / 328.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.00593, allocations: 25.7 kB / 328.2 MB, free: 12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.132e-05/0.005981, allocations: 92.09 kB / 328.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.863e-05/0.00601, allocations: 19.83 kB / 328.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.364e-05/0.006044, allocations: 17.72 kB / 328.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.006145, allocations: 318.8 kB / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002555/0.0064, allocations: 44.02 kB / 328.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.431e-05/0.006475, allocations: 39.95 kB / 328.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.006628, allocations: 80.73 kB / 328.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.00663, allocations: 0 / 328.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001885/0.006819, allocations: 117.6 kB / 328.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.006832, allocations: 4 kB / 329 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.006838, allocations: 0 / 329 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.006854, allocations: 0 / 329 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.786e-05/0.006942, allocations: 19.98 kB / 329 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.006949, allocations: 4 kB / 329 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.079e-05/0.006989, allocations: 11.97 kB / 329 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.006998, allocations: 8 kB / 329 MB, free: 11.21 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.769e-05/0.007076, allocations: 121.7 kB / 329.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.017e-05/0.007096, allocations: 0 / 329.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.007331, allocations: 137.7 kB / 329.2 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.007334, allocations: 3.984 kB / 329.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.007339, allocations: 0 / 329.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.007342, allocations: 4.375 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001227/0.007465, allocations: 144.7 kB / 329.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.007466, allocations: 0 / 329.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.306e-05/0.007519, allocations: 31.91 kB / 329.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.007521, allocations: 3.938 kB / 329.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.007528, allocations: 0 / 329.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.00753, allocations: 4 kB / 329.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.007531, allocations: 192 / 329.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002084/0.00774, allocations: 227.3 kB / 329.7 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.027e-06/0.007749, allocations: 11.94 kB / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.00776, allocations: 0 / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.359e-05/0.007813, allocations: 15.98 kB / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.896e-05/0.007852, allocations: 7.984 kB / 329.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-06/0.007855, allocations: 0 / 329.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.53e-05/0.007891, allocations: 91.27 kB / 329.8 MB, free: 10.35 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007891, allocations: 0 / 329.8 MB, free: 10.35 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000159/0.00805, allocations: 12 kB / 329.8 MB, free: 10.34 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 (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.0003912/0.008441, allocations: 0.7513 MB / 330.5 MB, free: 9.559 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.008634, allocations: 91.91 kB / 330.6 MB, free: 9.469 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.008636, allocations: 0 / 330.6 MB, free: 9.469 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.036e-05/0.008716, allocations: 47.89 kB / 330.7 MB, free: 9.422 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002277/0.008944, allocations: 8 kB / 330.7 MB, free: 9.414 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006481/0.009592, allocations: 198.3 kB / 330.9 MB, free: 9.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.673e-05/0.009649, allocations: 75.33 kB / 331 MB, free: 9.086 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.252e-05/0.009681, allocations: 4 kB / 331 MB, free: 9.082 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.284e-05/0.009734, allocations: 16.5 kB / 331 MB, free: 9.066 MB / 298.7 MB Notification: Performance of SimCode: time 1.282e-06/0.009735, allocations: 4 kB / 331 MB, free: 9.062 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.03352, allocations: 2.715 MB / 333.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.515/6.549, allocations: 8.047 kB / 333.7 MB, free: 6.441 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.273353585973382]