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) 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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001477/0.001477, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001784/0.001784, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 67.88 kB / 358.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2887, allocations: 50.54 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002912/0.2916, allocations: 1.514 MB / 410.2 MB, free: 52 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.2927, allocations: 0.5375 MB / 410.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.133e-05/0.2928, allocations: 0 / 410.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.293, allocations: 11.94 kB / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.319e-05/0.2931, allocations: 7.875 kB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001884/0.2933, allocations: 43.89 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.913e-05/0.2934, allocations: 59.78 kB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.2935, allocations: 19.98 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.2937, allocations: 31.86 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.167e-05/0.2938, allocations: 35.89 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.2939, allocations: 4 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.788e-05/0.2939, allocations: 19.94 kB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.245e-05/0.294, allocations: 19.92 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.535e-05/0.294, allocations: 23.86 kB / 411 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001528/0.2942, allocations: 59.8 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.2942, allocations: 4 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2942, allocations: 4 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.2942, allocations: 0 / 411.1 MB, free: 15.17 MB / 334.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.000656/0.2949, allocations: 381 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.2949, allocations: 12.03 kB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.227e-05/0.295, allocations: 34.75 kB / 411.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.183e-05/0.295, allocations: 4.938 kB / 411.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.2951, allocations: 176.2 kB / 411.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.2952, allocations: 4.375 kB / 411.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.2952, allocations: 8.375 kB / 411.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.2955, allocations: 93.75 kB / 411.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.2955, allocations: 0 / 411.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.2955, allocations: 0 / 411.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2955, allocations: 7.938 kB / 411.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003163/0.2958, allocations: 79.86 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004434/0.2963, allocations: 312.7 kB / 412.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.2966, allocations: 74.56 kB / 412.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.2967, allocations: 52.94 kB / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.2968, allocations: 0 / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.2968, allocations: 30.56 kB / 412.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 9.62e-07/0.2968, allocations: 0 / 412.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005931/0.2974, allocations: 153.5 kB / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.2974, allocations: 55.34 kB / 412.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.273e-05/0.2975, allocations: 117.8 kB / 412.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.2976, allocations: 25.7 kB / 412.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.35e-05/0.2976, allocations: 96.06 kB / 412.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.2977, allocations: 7.812 kB / 412.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.801e-05/0.2977, allocations: 17.72 kB / 412.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.2978, allocations: 326.8 kB / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.298, allocations: 35.97 kB / 413.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.2981, allocations: 39.95 kB / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.2984, allocations: 76.78 kB / 413.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2984, allocations: 4 kB / 413.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003415/0.2988, allocations: 117.5 kB / 413.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2988, allocations: 4 kB / 413.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2988, allocations: 0 / 413.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.2988, allocations: 0 / 413.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.299, allocations: 19.97 kB / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.299, allocations: 8 kB / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.887e-05/0.2991, allocations: 7.984 kB / 413.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.2991, allocations: 8.375 kB / 413.5 MB, free: 12.59 MB / 334.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.918e-05/0.2992, allocations: 113.8 kB / 413.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.2992, allocations: 7.906 kB / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000406/0.2996, allocations: 137.5 kB / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2996, allocations: 0 / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.2997, allocations: 4 kB / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2997, allocations: 0 / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/0.2998, allocations: 193.5 kB / 413.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2999, allocations: 3.938 kB / 413.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.3, allocations: 27.97 kB / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3, allocations: 0 / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.3, allocations: 0 / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3, allocations: 0 / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3, allocations: 4 kB / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004074/0.3004, allocations: 219.3 kB / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.172e-05/0.3005, allocations: 81.05 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.3005, allocations: 8 kB / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.3006, allocations: 12.36 kB / 414.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.645e-05/0.3007, allocations: 7.984 kB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.3007, allocations: 0 / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.857e-05/0.3007, allocations: 99.14 kB / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3007, allocations: 0 / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.301, allocations: 19.91 kB / 414.4 MB, free: 11.56 MB / 334.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.0006763/0.3016, allocations: 0.7437 MB / 415.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003688/0.302, allocations: 91.86 kB / 415.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.302, allocations: 0 / 415.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.3022, allocations: 47.95 kB / 415.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.3025, allocations: 8 kB / 415.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004851/0.303, allocations: 199.6 kB / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.3033, allocations: 0.6885 MB / 416.1 MB, free: 9.699 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.563e-05/0.3033, allocations: 7.984 kB / 416.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.234e-05/0.3034, allocations: 19.44 kB / 416.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3034, allocations: 0 / 416.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.3204, allocations: 2.059 MB / 418.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.053/8.373, allocations: 22 kB / 418.2 MB, free: 7.691 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches