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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 107.6 kB / 21.18 MB, free: 460 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 220.1 kB / 24.48 MB, free: 3.805 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 207.7 MB / 235.3 MB, free: 9.82 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 49.5 kB / 347.2 MB, free: 9.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2707, allocations: 49.16 MB / 396.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002661/0.2733, allocations: 1.492 MB / 397.8 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008581/0.2742, allocations: 0.51 MB / 398.3 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.813e-05/0.2742, allocations: 0 / 398.3 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.2743, allocations: 12.97 kB / 398.3 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.16e-05/0.2744, allocations: 17.34 kB / 398.3 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001828/0.2746, allocations: 36.5 kB / 398.4 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.2747, allocations: 61.36 kB / 398.4 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.2748, allocations: 15.59 kB / 398.5 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.2749, allocations: 25.78 kB / 398.5 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.578e-05/0.275, allocations: 26.5 kB / 398.5 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.788e-05/0.275, allocations: 9.875 kB / 398.5 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.88e-05/0.2751, allocations: 14.47 kB / 398.5 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.936e-05/0.2751, allocations: 12.06 kB / 398.5 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.993e-05/0.2751, allocations: 23.36 kB / 398.6 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.2753, allocations: 72.31 kB / 398.6 MB, free: 7.367 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2753, allocations: 0 / 398.6 MB, free: 7.367 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.2753, allocations: 0 / 398.6 MB, free: 7.367 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.2753, allocations: 5.094 kB / 398.6 MB, free: 7.363 MB / 318.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.0005667/0.2759, allocations: 309.5 kB / 398.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.2759, allocations: 17.59 kB / 399 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.305e-05/0.276, allocations: 37.88 kB / 399 MB, free: 7.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.596e-05/0.276, allocations: 8.453 kB / 399 MB, free: 7.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.102e-05/0.2761, allocations: 115.2 kB / 399.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.2761, allocations: 2.562 kB / 399.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.2761, allocations: 7.781 kB / 399.1 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000256/0.2763, allocations: 85.5 kB / 399.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.2764, allocations: 1.125 kB / 399.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.2764, allocations: 0 / 399.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.2764, allocations: 9.109 kB / 399.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.2767, allocations: 81.52 kB / 399.3 MB, free: 6.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000358/0.2771, allocations: 266.3 kB / 399.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002377/0.2773, allocations: 69.92 kB / 399.6 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.2774, allocations: 53.69 kB / 399.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.2775, allocations: 0 / 399.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.613e-05/0.2775, allocations: 32.62 kB / 399.7 MB, free: 6.457 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 8.32e-07/0.2775, allocations: 0 / 399.7 MB, free: 6.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005359/0.278, allocations: 151.2 kB / 399.9 MB, free: 6.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.278, allocations: 52.5 kB / 399.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.724e-05/0.2781, allocations: 116.9 kB / 400 MB, free: 6.227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.037e-06/0.2781, allocations: 27.17 kB / 400.1 MB, free: 6.195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.105e-05/0.2781, allocations: 92.91 kB / 400.1 MB, free: 6.105 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/0.2782, allocations: 19.16 kB / 400.2 MB, free: 6.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.2782, allocations: 19.5 kB / 400.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.003e-05/0.2782, allocations: 326.2 kB / 400.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.2784, allocations: 33.86 kB / 400.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.2785, allocations: 43.08 kB / 400.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/0.2788, allocations: 75.38 kB / 400.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2788, allocations: 1.156 kB / 400.7 MB, free: 5.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003169/0.2791, allocations: 117.8 kB / 400.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.2792, allocations: 5.953 kB / 400.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2792, allocations: 0 / 400.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.2792, allocations: 1.219 kB / 400.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.2793, allocations: 23.06 kB / 400.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.2793, allocations: 0 / 400.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.997e-05/0.2794, allocations: 12.61 kB / 400.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.2794, allocations: 5.438 kB / 400.8 MB, free: 5.648 MB / 318.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 5.061e-05/0.2795, allocations: 117.7 kB / 400.9 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.2795, allocations: 6.828 kB / 400.9 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003765/0.2799, allocations: 130.6 kB / 401.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.2799, allocations: 1.219 kB / 401.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.2799, allocations: 0.7969 kB / 401.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2799, allocations: 1.281 kB / 401.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.28, allocations: 149.4 kB / 401.2 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.28, allocations: 6.484 kB / 401.2 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.2801, allocations: 24.86 kB / 401.2 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.2801, allocations: 0 / 401.2 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.2801, allocations: 5.938 kB / 401.2 MB, free: 5.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2801, allocations: 0 / 401.2 MB, free: 5.281 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2801, allocations: 0.5625 kB / 401.2 MB, free: 5.281 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003526/0.2805, allocations: 225.3 kB / 401.5 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.019e-05/0.2805, allocations: 2.938 kB / 401.5 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.2805, allocations: 0.6094 kB / 401.5 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.2806, allocations: 11.59 kB / 401.5 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.394e-05/0.2807, allocations: 14.2 kB / 401.5 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.463e-06/0.2807, allocations: 7.453 kB / 401.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.229e-05/0.2807, allocations: 95.61 kB / 401.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2807, allocations: 1.25 kB / 401.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.2809, allocations: 17.48 kB / 401.6 MB, free: 5.016 MB / 318.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.0005193/0.2814, allocations: 0.7492 MB / 402.4 MB, free: 4.332 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000352/0.2818, allocations: 98.58 kB / 402.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2818, allocations: 4 kB / 402.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001594/0.2819, allocations: 41.02 kB / 402.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.2823, allocations: 9.328 kB / 402.5 MB, free: 4.293 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004451/0.2827, allocations: 195.6 kB / 402.7 MB, free: 4.109 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6e-05/0.2828, allocations: 75.58 kB / 402.8 MB, free: 4.035 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.551e-05/0.2828, allocations: 11.45 kB / 402.8 MB, free: 4.027 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.389e-05/0.2829, allocations: 20.97 kB / 402.8 MB, free: 4.012 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2829, allocations: 0 / 402.8 MB, free: 4.012 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02946/0.3123, allocations: 2.591 MB / 405.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.87, allocations: 6.125 kB / 405.4 MB, free: 2.934 MB / 318.1 MB " [Timeout remaining time 649] (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 --stepSize=0.001 --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) [Timeout 52.5] 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","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.17346375901252]