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.001489/0.001489, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.00175/0.00175, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.569/1.569, allocations: 207.6 MB / 235.3 MB, free: 9.996 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.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3139, allocations: 49.17 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003566/0.3175, allocations: 1.832 MB / 398.2 MB, free: 7.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.319, allocations: 0.9795 MB / 399.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.3192, allocations: 5.312 kB / 399.2 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006953/0.3198, allocations: 178.5 kB / 399.3 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003486/0.3202, allocations: 127.2 kB / 399.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.3207, allocations: 154.4 kB / 399.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003224/0.321, allocations: 204.6 kB / 399.8 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.3212, allocations: 13.02 kB / 399.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.3213, allocations: 91.89 kB / 399.9 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.3215, allocations: 91.55 kB / 400 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.75e-05/0.3215, allocations: 10.28 kB / 400 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002132/0.3217, allocations: 66.03 kB / 400.1 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.004e-05/0.3218, allocations: 47.36 kB / 400.1 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.3219, allocations: 77.94 kB / 400.2 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.3224, allocations: 220.6 kB / 400.4 MB, free: 6.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3224, allocations: 1.031 kB / 400.4 MB, free: 6.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.3224, allocations: 0 / 400.4 MB, free: 6.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3224, allocations: 0 / 400.4 MB, free: 6.48 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.0008904/0.3233, allocations: 467.1 kB / 400.9 MB, free: 6.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.3234, allocations: 13.64 kB / 400.9 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.106e-05/0.3234, allocations: 43.41 kB / 400.9 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.39e-05/0.3235, allocations: 22.75 kB / 400.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/0.3238, allocations: 194.2 kB / 401.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.3238, allocations: 11.45 kB / 401.1 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.3238, allocations: 9.609 kB / 401.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.324, allocations: 120.3 kB / 401.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.324, allocations: 1.219 kB / 401.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.324, allocations: 6.016 kB / 401.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.324, allocations: 5.25 kB / 401.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001396/0.3242, allocations: 49.52 kB / 401.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005612/0.3247, allocations: 0.5817 MB / 401.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/0.325, allocations: 124.1 kB / 402 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.476e-05/0.3251, allocations: 44.89 kB / 402.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.3251, allocations: 2.016 kB / 402.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002159/0.3253, allocations: 121 kB / 402.2 MB, free: 4.941 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.3253, allocations: 0 / 402.2 MB, free: 4.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004362/0.3258, allocations: 177.8 kB / 402.4 MB, free: 4.855 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.3258, allocations: 136.2 kB / 402.5 MB, free: 4.695 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.3261, allocations: 286.6 kB / 402.8 MB, free: 4.531 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.3261, allocations: 32.7 kB / 402.8 MB, free: 4.496 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.131e-05/0.3262, allocations: 130.1 kB / 402.9 MB, free: 4.379 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.3262, allocations: 27.16 kB / 403 MB, free: 4.359 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.593e-05/0.3263, allocations: 39.75 kB / 403 MB, free: 4.328 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.035e-05/0.3264, allocations: 331.4 kB / 403.3 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.145e-05/0.3265, allocations: 28.39 kB / 403.4 MB, free: 4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.3266, allocations: 90.31 kB / 403.4 MB, free: 3.922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.3267, allocations: 93.69 kB / 403.5 MB, free: 3.855 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.3267, allocations: 1.344 kB / 403.5 MB, free: 3.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002534/0.327, allocations: 147.9 kB / 403.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.327, allocations: 6.672 kB / 403.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.327, allocations: 1.188 kB / 403.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.327, allocations: 1.344 kB / 403.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.203e-05/0.3271, allocations: 15.02 kB / 403.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.3271, allocations: 5.406 kB / 403.7 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.3272, allocations: 23.62 kB / 403.7 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.3273, allocations: 5 kB / 403.7 MB, free: 3.758 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.0001192/0.3274, allocations: 147.6 kB / 403.9 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.653e-05/0.3274, allocations: 18.3 kB / 403.9 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000246/0.3277, allocations: 110.4 kB / 404 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.3277, allocations: 6.078 kB / 404 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3277, allocations: 1.094 kB / 404 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3277, allocations: 5.656 kB / 404 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001957/0.3279, allocations: 217.3 kB / 404.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3279, allocations: 1.156 kB / 404.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.856e-05/0.3279, allocations: 6.031 kB / 404.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3279, allocations: 5.25 kB / 404.3 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.3279, allocations: 5.047 kB / 404.3 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.3279, allocations: 0.9688 kB / 404.3 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.3279, allocations: 1.062 kB / 404.3 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002676/0.3282, allocations: 188.5 kB / 404.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.382e-05/0.3282, allocations: 18.22 kB / 404.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.3283, allocations: 6.156 kB / 404.5 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.504e-05/0.3284, allocations: 14.02 kB / 404.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.3284, allocations: 15.86 kB / 404.5 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.3284, allocations: 12.56 kB / 404.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001769/0.3286, allocations: 212.7 kB / 404.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3286, allocations: 0 / 404.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002677/0.3289, allocations: 35.91 kB / 404.7 MB, free: 3.062 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.001727/0.3306, allocations: 1.015 MB / 405.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002608/0.3309, allocations: 97.89 kB / 405.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3309, allocations: 0 / 405.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.331, allocations: 48.34 kB / 405.9 MB, free: 2.094 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.3313, allocations: 53.3 kB / 406 MB, free: 2.074 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.3335, allocations: 2.174 MB / 408.1 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.3337, allocations: 0.7254 MB / 408.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.237e-05/0.3338, allocations: 26.05 kB / 408.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.3339, allocations: 59.88 kB / 408.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3339, allocations: 1.375 kB / 408.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03446/0.3684, allocations: 5.325 MB / 414.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.5, allocations: 5.438 kB / 414.3 MB, free: 13.45 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 & /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: 14.220316589111462]