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.001333/0.001333, allocations: 114 kB / 20.44 MB, free: 1.469 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.001416/0.001416, allocations: 214.1 kB / 23.74 MB, free: 4.695 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.402/1.402, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.001982/0.001982, allocations: 67.91 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2325, allocations: 53.42 MB / 431.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003216/0.2358, allocations: 1.864 MB / 433 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.2378, allocations: 1.204 MB / 434.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.2379, allocations: 7.938 kB / 434.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000662/0.2386, allocations: 171.5 kB / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004265/0.239, allocations: 171.3 kB / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004229/0.2394, allocations: 147.2 kB / 434.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002939/0.2397, allocations: 219.4 kB / 434.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.2398, allocations: 17.69 kB / 435 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.24, allocations: 83.69 kB / 435 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.2401, allocations: 103.5 kB / 435.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.2401, allocations: 12 kB / 435.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001538/0.2403, allocations: 59.95 kB / 435.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.345e-05/0.2404, allocations: 47.78 kB / 435.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.253e-05/0.2405, allocations: 83.47 kB / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00034/0.2408, allocations: 227.5 kB / 435.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2408, allocations: 0 / 435.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2408, allocations: 4 kB / 435.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.2408, allocations: 0 / 435.6 MB, free: 2.262 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008869/0.2417, allocations: 478.6 kB / 436 MB, free: 1.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.2417, allocations: 8.031 kB / 436 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.029e-05/0.2418, allocations: 38.75 kB / 436.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.242e-05/0.2418, allocations: 20.8 kB / 436.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.2421, allocations: 205.1 kB / 436.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.2422, allocations: 12.38 kB / 436.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.2422, allocations: 4.375 kB / 436.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002431/0.2424, allocations: 126 kB / 436.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.2424, allocations: 0 / 436.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.2424, allocations: 0 / 436.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2425, allocations: 4 kB / 436.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.2426, allocations: 47.91 kB / 436.5 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006645/0.2433, allocations: 0.5784 MB / 437.1 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.2435, allocations: 115.9 kB / 437.2 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.2436, allocations: 58.5 kB / 437.2 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.2437, allocations: 3.984 kB / 437.2 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.2439, allocations: 121.9 kB / 437.4 MB, free: 268 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.2439, allocations: 7.938 kB / 437.4 MB, free: 260 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004464/0.2443, allocations: 177.4 kB / 437.5 MB, free: 76 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.2444, allocations: 132.5 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003217/0.2448, allocations: 293.1 kB / 438 MB, free: 15.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.2448, allocations: 33.7 kB / 438 MB, free: 15.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.376e-05/0.2449, allocations: 120.4 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.2449, allocations: 31.73 kB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.204e-05/0.245, allocations: 37.84 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.2451, allocations: 334.8 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.529e-05/0.2452, allocations: 31.98 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.2453, allocations: 85.92 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001813/0.2455, allocations: 96.75 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2455, allocations: 0 / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000275/0.2458, allocations: 141.5 kB / 438.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.2458, allocations: 8 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2458, allocations: 4.094 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.2458, allocations: 4 kB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.321e-05/0.2459, allocations: 19.92 kB / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2459, allocations: 4 kB / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.246, allocations: 19.86 kB / 438.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.2461, allocations: 4 kB / 438.9 MB, free: 14.6 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 0.0001416/0.2462, allocations: 153.7 kB / 439.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.2462, allocations: 19.86 kB / 439.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002288/0.2465, allocations: 111.4 kB / 439.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.2465, allocations: 3.984 kB / 439.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2465, allocations: 4 kB / 439.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2465, allocations: 0 / 439.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002376/0.2467, allocations: 224.5 kB / 439.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2467, allocations: 0 / 439.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.143e-05/0.2467, allocations: 7.938 kB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.2468, allocations: 4 kB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.968e-06/0.2468, allocations: 0 / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.2468, allocations: 4 kB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2468, allocations: 7.984 kB / 439.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003108/0.2471, allocations: 178.7 kB / 439.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.824e-05/0.2471, allocations: 19.84 kB / 439.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.15e-05/0.2472, allocations: 8 kB / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.849e-05/0.2473, allocations: 15.98 kB / 439.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.902e-05/0.2473, allocations: 19.91 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.2473, allocations: 7.938 kB / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002253/0.2476, allocations: 216.5 kB / 439.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2476, allocations: 0 / 439.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002639/0.2478, allocations: 39.98 kB / 439.9 MB, free: 13.49 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.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.001945/0.2498, allocations: 1.011 MB / 441 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002711/0.25, allocations: 99.77 kB / 441.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.25, allocations: 0 / 441.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.2502, allocations: 52.11 kB / 441.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.2505, allocations: 70.41 kB / 441.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/0.2531, allocations: 2.172 MB / 443.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.2535, allocations: 0.7359 MB / 444.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.71e-05/0.2536, allocations: 21.48 kB / 444.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.987e-05/0.2537, allocations: 63.41 kB / 444.2 MB, free: 9.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2537, allocations: 0 / 444.2 MB, free: 9.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03271/0.2864, allocations: 5.415 MB / 449.6 MB, free: 3.855 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.15, allocations: 3.094 kB / 449.6 MB, free: 3.855 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.557546555995941]