Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.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.001527/0.001527, allocations: 123.4 kB / 17.79 MB, free: 5.258 MB / 14.72 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.001484/0.001484, allocations: 207.5 kB / 20.74 MB, free: 2.309 MB / 14.72 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 1.426/1.426, allocations: 230.5 MB / 254 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] 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.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 59.91 kB / 373 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.101, allocations: 53.38 MB / 426.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00329/0.1043, allocations: 1.867 MB / 428.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.1063, allocations: 1.184 MB / 429.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.1065, allocations: 7.938 kB / 429.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005918/0.1071, allocations: 163.5 kB / 429.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004489/0.1075, allocations: 167.4 kB / 429.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004251/0.1079, allocations: 139.5 kB / 429.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003141/0.1082, allocations: 219.4 kB / 430.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.955e-05/0.1083, allocations: 13.56 kB / 430.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.1085, allocations: 95.61 kB / 430.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.1086, allocations: 87.61 kB / 430.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.009e-05/0.1087, allocations: 12 kB / 430.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.1088, allocations: 67.89 kB / 430.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.484e-05/0.1089, allocations: 43.84 kB / 430.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.267e-05/0.109, allocations: 79.52 kB / 430.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003603/0.1094, allocations: 231 kB / 430.7 MB, free: 280 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1094, allocations: 0 / 430.7 MB, free: 280 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1094, allocations: 0 / 430.7 MB, free: 280 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1094, allocations: 0 / 430.7 MB, free: 280 kB / 350.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.1793/0.2887, allocations: 0.5318 MB / 431.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.2887, allocations: 10.03 kB / 431.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.254e-05/0.2888, allocations: 36.56 kB / 431.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.805e-05/0.2888, allocations: 24.11 kB / 431.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000298/0.2891, allocations: 266.1 kB / 431.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.2891, allocations: 7.781 kB / 431.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.2892, allocations: 5.844 kB / 431.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.2894, allocations: 117.1 kB / 431.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.2894, allocations: 5.406 kB / 431.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.2894, allocations: 5.391 kB / 431.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.2894, allocations: 3.688 kB / 431.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.2896, allocations: 49.45 kB / 431.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005294/0.2901, allocations: 0.6081 MB / 432.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.2903, allocations: 119.6 kB / 432.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.265e-05/0.2904, allocations: 48.25 kB / 432.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.2905, allocations: 7.484 kB / 432.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000202/0.2907, allocations: 114.9 kB / 432.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.2907, allocations: 0.6875 kB / 432.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004403/0.2911, allocations: 181.8 kB / 432.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.2912, allocations: 131.4 kB / 432.9 MB, free: 9.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002789/0.2914, allocations: 292.4 kB / 433.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.2915, allocations: 31.83 kB / 433.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.124e-05/0.2915, allocations: 123 kB / 433.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/0.2915, allocations: 35.03 kB / 433.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-05/0.2916, allocations: 37 kB / 433.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.269e-05/0.2916, allocations: 335.5 kB / 433.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.847e-05/0.2917, allocations: 35.2 kB / 433.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.867e-05/0.2918, allocations: 83.33 kB / 433.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.292, allocations: 105.6 kB / 434 MB, free: 9.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.292, allocations: 3.422 kB / 434 MB, free: 9.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002342/0.2922, allocations: 142.7 kB / 434.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.2922, allocations: 6.562 kB / 434.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.2922, allocations: 0 / 434.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.2923, allocations: 1.969 kB / 434.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.162e-05/0.2923, allocations: 16.39 kB / 434.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.2924, allocations: 7.031 kB / 434.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.2925, allocations: 16.42 kB / 434.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-06/0.2925, allocations: 3.938 kB / 434.2 MB, free: 9.219 MB / 350.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 9.836e-05/0.2926, allocations: 149 kB / 434.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.566e-05/0.2926, allocations: 24.83 kB / 434.4 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.092e-05/0.2927, allocations: 23.39 kB / 434.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2927, allocations: 1.75 kB / 434.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2927, allocations: 1.094 kB / 434.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2927, allocations: 2.969 kB / 434.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001701/0.2928, allocations: 253.7 kB / 434.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2928, allocations: 7.984 kB / 434.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.679e-05/0.2929, allocations: 7.375 kB / 434.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.2929, allocations: 2.531 kB / 434.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.2929, allocations: 4.594 kB / 434.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2929, allocations: 5.875 kB / 434.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.2929, allocations: 2.625 kB / 434.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002681/0.2932, allocations: 188.5 kB / 434.9 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.697e-05/0.2932, allocations: 94.14 kB / 434.9 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.2932, allocations: 2.375 kB / 434.9 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.665e-05/0.2933, allocations: 14.12 kB / 435 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/0.2934, allocations: 16.45 kB / 435 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.2934, allocations: 4.906 kB / 435 MB, free: 8.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001877/0.2936, allocations: 216.5 kB / 435.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2936, allocations: 0 / 435.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.2938, allocations: 45.36 kB / 435.2 MB, free: 8.586 MB / 350.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.001784/0.2956, allocations: 1.024 MB / 436.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002649/0.2959, allocations: 90.11 kB / 436.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2959, allocations: 0 / 436.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.296, allocations: 44.3 kB / 436.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003652/0.2964, allocations: 50.58 kB / 436.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/0.2985, allocations: 2.192 MB / 438.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001459/0.2987, allocations: 0.7324 MB / 439.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.53e-05/0.2987, allocations: 31.02 kB / 439.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.44e-05/0.2988, allocations: 61.45 kB / 439.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2988, allocations: 0 / 439.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02814/0.327, allocations: 5.231 MB / 444.7 MB, free: 4.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.946/8.273, allocations: 13.33 kB / 444.7 MB, free: 4.766 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.747654446051456]