Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.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.002019/0.002019, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001803/0.001803, allocations: 205.4 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.508/1.508, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 43.92 kB / 378.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3099, allocations: 53.37 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.005961/0.3158, allocations: 1.607 MB / 433.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.3174, allocations: 462.8 kB / 433.6 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.3175, allocations: 4 kB / 433.6 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.457e-05/0.3175, allocations: 7.875 kB / 433.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.3177, allocations: 15.86 kB / 433.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.318, allocations: 31.97 kB / 433.7 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000205/0.3182, allocations: 63.72 kB / 433.7 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/0.3184, allocations: 39.98 kB / 433.8 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.3186, allocations: 39.73 kB / 433.8 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.3187, allocations: 31.86 kB / 433.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.3188, allocations: 4 kB / 433.9 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.824e-05/0.3188, allocations: 8 kB / 433.9 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.913e-05/0.3189, allocations: 15.92 kB / 433.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.996e-05/0.3189, allocations: 23.88 kB / 433.9 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.3192, allocations: 83.34 kB / 434 MB, free: 4.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3192, allocations: 0 / 434 MB, free: 4.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3192, allocations: 0 / 434 MB, free: 4.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.3192, allocations: 0 / 434 MB, free: 4.293 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008226/0.32, allocations: 315.3 kB / 434.3 MB, free: 3.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.3201, allocations: 8.031 kB / 434.3 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002396/0.3203, allocations: 20.88 kB / 434.3 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.3207, allocations: 130.4 kB / 434.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.3207, allocations: 8.359 kB / 434.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.577e-05/0.3207, allocations: 4.375 kB / 434.5 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003453/0.3211, allocations: 122.2 kB / 434.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.3211, allocations: 0 / 434.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.3211, allocations: 4 kB / 434.6 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.3211, allocations: 4 kB / 434.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002804/0.3214, allocations: 51.89 kB / 434.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009286/0.3223, allocations: 0.5792 MB / 435.2 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.3226, allocations: 113 kB / 435.3 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.3228, allocations: 52.33 kB / 435.4 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.3228, allocations: 0 / 435.4 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.169e-05/0.3228, allocations: 38.5 kB / 435.4 MB, free: 2.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.904e-06/0.3228, allocations: 0 / 435.4 MB, free: 2.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007303/0.3236, allocations: 125.5 kB / 435.5 MB, free: 2.547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.3237, allocations: 158.2 kB / 435.7 MB, free: 2.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000183/0.3239, allocations: 121.8 kB / 435.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.3239, allocations: 29.7 kB / 435.8 MB, free: 2.191 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.324, allocations: 104 kB / 435.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.377e-05/0.3241, allocations: 12.53 kB / 436 MB, free: 2.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.6e-05/0.3241, allocations: 21.72 kB / 436 MB, free: 2.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.3243, allocations: 322.8 kB / 436.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.3245, allocations: 19.98 kB / 436.3 MB, free: 1.703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.3246, allocations: 60.2 kB / 436.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.3249, allocations: 80.2 kB / 436.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3249, allocations: 0 / 436.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003483/0.3253, allocations: 97.55 kB / 436.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.3253, allocations: 4 kB / 436.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.3253, allocations: 4 kB / 436.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.3253, allocations: 3.938 kB / 436.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.3254, allocations: 16.2 kB / 436.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.3255, allocations: 8 kB / 436.6 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.3256, allocations: 8 kB / 436.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.3256, allocations: 7.938 kB / 436.6 MB, free: 1.383 MB / 334.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: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.0001447/0.3257, allocations: 117.8 kB / 436.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.3259, allocations: 11.95 kB / 436.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.828e-05/0.3259, allocations: 15.58 kB / 436.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3259, allocations: 0 / 436.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.547e-06/0.3259, allocations: 4 kB / 436.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3259, allocations: 0 / 436.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005789/0.3265, allocations: 137.1 kB / 436.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.3265, allocations: 4 kB / 436.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.3266, allocations: 15.92 kB / 436.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3266, allocations: 0 / 436.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.3266, allocations: 4 kB / 436.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.3267, allocations: 0 / 436.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.3267, allocations: 4 kB / 436.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005913/0.3272, allocations: 488.5 kB / 437.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.223e-05/0.3273, allocations: 11.95 kB / 437.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.685e-05/0.3273, allocations: 4 kB / 437.4 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003883/0.3277, allocations: 11.98 kB / 437.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.823e-05/0.3278, allocations: 11.92 kB / 437.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.3278, allocations: 4 kB / 437.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.216e-05/0.3278, allocations: 95.2 kB / 437.5 MB, free: 408 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3278, allocations: 0 / 437.5 MB, free: 408 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.000737/0.3286, allocations: 12 kB / 437.5 MB, free: 396 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001425/0.3287, allocations: 99.23 kB / 437.6 MB, free: 288 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003418/0.3291, allocations: 59.84 kB / 437.7 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3291, allocations: 0 / 437.7 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.3292, allocations: 39.91 kB / 437.7 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009538/0.3302, allocations: 4 kB / 437.7 MB, free: 184 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006963/0.3309, allocations: 203.6 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001606/0.331, allocations: 79.27 kB / 438 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.049e-05/0.3311, allocations: 3.938 kB / 438 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.692e-05/0.3311, allocations: 19.42 kB / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3311, allocations: 0 / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of Templates: time 0.004342/0.3355, allocations: 0.5932 MB / 438.6 MB, free: 15.24 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.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: 4.683066388126463]