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.001821/0.001821, allocations: 107.6 kB / 21.18 MB, free: 452 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.001472/0.001472, allocations: 217.1 kB / 24.47 MB, free: 3.777 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.376/1.376, allocations: 207.7 MB / 235.3 MB, free: 9.812 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.001774/0.001774, allocations: 59.92 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2708, allocations: 49.15 MB / 396.3 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002845/0.2737, allocations: 1.774 MB / 398.1 MB, free: 7.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.2751, allocations: 0.9279 MB / 399 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.2752, allocations: 2.531 kB / 399 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006602/0.2758, allocations: 171.1 kB / 399.2 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002977/0.2761, allocations: 136.3 kB / 399.3 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.2765, allocations: 145.7 kB / 399.5 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.2767, allocations: 208.2 kB / 399.7 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.373e-05/0.2768, allocations: 17.2 kB / 399.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.2769, allocations: 83.12 kB / 399.8 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.277, allocations: 95.81 kB / 399.9 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.277, allocations: 11.16 kB / 399.9 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.2772, allocations: 64.98 kB / 400 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.869e-05/0.2772, allocations: 47.19 kB / 400 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.473e-05/0.2773, allocations: 57.98 kB / 400.1 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.2776, allocations: 217.2 kB / 400.3 MB, free: 6.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2776, allocations: 7.938 kB / 400.3 MB, free: 6.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2776, allocations: 0 / 400.3 MB, free: 6.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.2776, allocations: 0.9688 kB / 400.3 MB, free: 6.523 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.0007143/0.2783, allocations: 470.4 kB / 400.7 MB, free: 6.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2784, allocations: 13.17 kB / 400.7 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.984e-05/0.2784, allocations: 38.81 kB / 400.8 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.968e-05/0.2785, allocations: 23.19 kB / 400.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002608/0.2787, allocations: 197.4 kB / 401 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.2787, allocations: 4.703 kB / 401 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.2788, allocations: 9.25 kB / 401 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.279, allocations: 117.1 kB / 401.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.279, allocations: 0 / 401.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.279, allocations: 1.891 kB / 401.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.279, allocations: 5.5 kB / 401.1 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001475/0.2792, allocations: 54.39 kB / 401.2 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000515/0.2797, allocations: 0.5703 MB / 401.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002386/0.2799, allocations: 117.5 kB / 401.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.176e-05/0.28, allocations: 48.89 kB / 401.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.28, allocations: 2.828 kB / 401.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002095/0.2802, allocations: 128.3 kB / 402.1 MB, free: 5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.2802, allocations: 0 / 402.1 MB, free: 5 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004267/0.2807, allocations: 177.1 kB / 402.2 MB, free: 4.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.2807, allocations: 106 kB / 402.3 MB, free: 4.793 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003015/0.281, allocations: 290 kB / 402.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.281, allocations: 34.11 kB / 402.6 MB, free: 4.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.208e-05/0.2811, allocations: 124.2 kB / 402.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.848e-05/0.2811, allocations: 27.48 kB / 402.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.135e-05/0.2812, allocations: 35.52 kB / 402.8 MB, free: 4.434 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.185e-05/0.2812, allocations: 339.7 kB / 403.2 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.846e-05/0.2813, allocations: 28.98 kB / 403.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.2814, allocations: 107.6 kB / 403.3 MB, free: 4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.2816, allocations: 101.5 kB / 403.4 MB, free: 3.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2816, allocations: 0 / 403.4 MB, free: 3.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002508/0.2819, allocations: 146.6 kB / 403.5 MB, free: 3.852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.2819, allocations: 5.656 kB / 403.5 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2819, allocations: 5.766 kB / 403.5 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.2819, allocations: 6.125 kB / 403.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.569e-05/0.282, allocations: 13.19 kB / 403.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.282, allocations: 3.031 kB / 403.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.2821, allocations: 18.92 kB / 403.6 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.2821, allocations: 8.969 kB / 403.6 MB, free: 3.832 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 9.645e-05/0.2822, allocations: 143.5 kB / 403.7 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.2822, allocations: 26.69 kB / 403.8 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002273/0.2825, allocations: 121.7 kB / 403.9 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2825, allocations: 2.875 kB / 403.9 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2825, allocations: 1.156 kB / 403.9 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2825, allocations: 5.703 kB / 403.9 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2826, allocations: 202.3 kB / 404.1 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2827, allocations: 0.875 kB / 404.1 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.832e-05/0.2827, allocations: 11.97 kB / 404.1 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.2827, allocations: 1.469 kB / 404.1 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.2827, allocations: 2.312 kB / 404.1 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.2827, allocations: 6.594 kB / 404.1 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2827, allocations: 1.375 kB / 404.1 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002793/0.283, allocations: 185.6 kB / 404.3 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.56e-05/0.283, allocations: 16.22 kB / 404.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.357e-05/0.2831, allocations: 6.375 kB / 404.3 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.517e-05/0.2832, allocations: 13.91 kB / 404.3 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.195e-05/0.2832, allocations: 20.69 kB / 404.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.2832, allocations: 6.031 kB / 404.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001727/0.2834, allocations: 215.1 kB / 404.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2834, allocations: 4 kB / 404.6 MB, free: 3.148 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002556/0.2837, allocations: 39.53 kB / 404.6 MB, free: 3.137 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 (13): * Single equations (assignments): 10 * 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.001798/0.2855, allocations: 1.061 MB / 405.7 MB, free: 2.184 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002494/0.2857, allocations: 96.98 kB / 405.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2857, allocations: 0 / 405.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.2858, allocations: 55.95 kB / 405.8 MB, free: 2.133 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.2862, allocations: 54.08 kB / 405.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002152/0.2883, allocations: 2.179 MB / 408 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/0.2884, allocations: 128 kB / 408.2 MB, free: 472 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.415e-05/0.2885, allocations: 21.64 kB / 408.2 MB, free: 472 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.925e-05/0.2886, allocations: 60.55 kB / 408.3 MB, free: 428 kB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2886, allocations: 0 / 408.3 MB, free: 428 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03342/0.322, allocations: 5.874 MB / 414.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.99, allocations: 4.906 kB / 414.1 MB, free: 13.55 MB / 334.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.380071486812085]