Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.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.001368/0.001368, allocations: 109.6 kB / 21.18 MB, free: 0.7188 MB / 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.001529/0.001529, allocations: 216.7 kB / 24.49 MB, free: 4.09 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.359/1.359, allocations: 207.6 MB / 235.3 MB, free: 10.01 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.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",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.001855/0.001855, allocations: 55.92 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2745, allocations: 49.15 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003193/0.2777, allocations: 1.834 MB / 398.2 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.2792, allocations: 0.984 MB / 399.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.2794, allocations: 6.219 kB / 399.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006764/0.28, allocations: 170 kB / 399.3 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003263/0.2804, allocations: 129.1 kB / 399.4 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004453/0.2808, allocations: 156.9 kB / 399.6 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002885/0.2811, allocations: 209 kB / 399.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.2812, allocations: 9.172 kB / 399.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.2813, allocations: 92.45 kB / 399.9 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.2815, allocations: 95.14 kB / 400 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.2815, allocations: 10.16 kB / 400 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.2817, allocations: 60.36 kB / 400.1 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.145e-05/0.2817, allocations: 48.38 kB / 400.1 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.705e-05/0.2818, allocations: 76.84 kB / 400.2 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003395/0.2822, allocations: 221.5 kB / 400.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2822, allocations: 1.406 kB / 400.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2822, allocations: 0 / 400.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.2822, allocations: 0.75 kB / 400.4 MB, free: 6.508 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008476/0.283, allocations: 470.5 kB / 400.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.2831, allocations: 13.36 kB / 400.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.204e-05/0.2831, allocations: 42.77 kB / 400.9 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.193e-05/0.2832, allocations: 22.52 kB / 400.9 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.2835, allocations: 199.3 kB / 401.1 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.2835, allocations: 8.094 kB / 401.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.2835, allocations: 8.734 kB / 401.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002411/0.2837, allocations: 124.8 kB / 401.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2837, allocations: 0 / 401.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.2838, allocations: 1.906 kB / 401.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.2838, allocations: 2.219 kB / 401.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.2839, allocations: 49.22 kB / 401.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005978/0.2845, allocations: 0.5853 MB / 401.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.2848, allocations: 120.6 kB / 402 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.711e-05/0.2849, allocations: 47.19 kB / 402.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.584e-05/0.2849, allocations: 4.109 kB / 402.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002284/0.2851, allocations: 120.9 kB / 402.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.2851, allocations: 0 / 402.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004744/0.2856, allocations: 173 kB / 402.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.2857, allocations: 136.5 kB / 402.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000303/0.286, allocations: 287.7 kB / 402.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.286, allocations: 26.89 kB / 402.8 MB, free: 4.527 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.718e-05/0.286, allocations: 135 kB / 402.9 MB, free: 4.406 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.948e-05/0.2861, allocations: 28.11 kB / 403 MB, free: 4.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-05/0.2861, allocations: 35.17 kB / 403 MB, free: 4.359 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.887e-05/0.2862, allocations: 331 kB / 403.3 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.2864, allocations: 36.36 kB / 403.4 MB, free: 4.023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.2865, allocations: 87.39 kB / 403.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.2866, allocations: 97.62 kB / 403.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2866, allocations: 4.969 kB / 403.5 MB, free: 3.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002959/0.2869, allocations: 140.8 kB / 403.7 MB, free: 3.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.287, allocations: 8.906 kB / 403.7 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.287, allocations: 2.156 kB / 403.7 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.287, allocations: 2.344 kB / 403.7 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.2871, allocations: 21.77 kB / 403.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.2871, allocations: 3.047 kB / 403.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.2872, allocations: 18.67 kB / 403.7 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.2873, allocations: 8.484 kB / 403.8 MB, free: 3.777 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 0.0001456/0.2874, allocations: 140.4 kB / 403.9 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.652e-05/0.2874, allocations: 21.61 kB / 403.9 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002743/0.2877, allocations: 114.7 kB / 404 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2877, allocations: 2.125 kB / 404 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.2877, allocations: 1.188 kB / 404 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.2877, allocations: 6.5 kB / 404 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.288, allocations: 215.7 kB / 404.2 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.288, allocations: 1.125 kB / 404.2 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.175e-05/0.288, allocations: 5.688 kB / 404.2 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.288, allocations: 1.406 kB / 404.2 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.288, allocations: 7.688 kB / 404.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.288, allocations: 9.062 kB / 404.3 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.288, allocations: 1.188 kB / 404.3 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.2884, allocations: 180.4 kB / 404.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/0.2884, allocations: 18.78 kB / 404.5 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.2884, allocations: 5.312 kB / 404.5 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.994e-05/0.2885, allocations: 13.52 kB / 404.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.46e-05/0.2886, allocations: 19.88 kB / 404.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.2886, allocations: 3.625 kB / 404.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001979/0.2888, allocations: 211.1 kB / 404.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2888, allocations: 0 / 404.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.2891, allocations: 43.09 kB / 404.8 MB, free: 3.086 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00189/0.291, allocations: 1.023 MB / 405.8 MB, free: 2.164 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003129/0.2913, allocations: 88.16 kB / 405.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2913, allocations: 5.312 kB / 405.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.2915, allocations: 48.12 kB / 405.9 MB, free: 2.117 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000405/0.2919, allocations: 52.42 kB / 406 MB, free: 2.098 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.2942, allocations: 2.171 MB / 408.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002618/0.2945, allocations: 0.7335 MB / 408.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001081/0.2946, allocations: 26.44 kB / 408.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.2947, allocations: 59.53 kB / 409 MB, free: 15.78 MB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2947, allocations: 1.375 kB / 409 MB, free: 15.78 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03586/0.3306, allocations: 5.315 MB / 414.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.16, allocations: 9.188 kB / 414.3 MB, free: 13.48 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00199283 Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable table.y in file Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.645023443001264]