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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 102.5 kB / 17.73 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001186, allocations: 191 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 56.39 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08446/0.08568, allocations: 46.61 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003559/0.08929, allocations: 1.824 MB / 376.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.09113, allocations: 0.9524 MB / 377.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.0913, allocations: 4 kB / 377.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006867/0.09203, allocations: 167.5 kB / 377.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003625/0.09241, allocations: 127.5 kB / 377.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004699/0.09289, allocations: 155.6 kB / 377.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003012/0.0932, allocations: 207.4 kB / 378 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.09334, allocations: 29.53 kB / 378.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.09351, allocations: 83.62 kB / 378.2 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.09368, allocations: 79.67 kB / 378.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.545e-05/0.09372, allocations: 12 kB / 378.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.0939, allocations: 55.97 kB / 378.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.792e-05/0.09399, allocations: 55.75 kB / 378.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.979e-05/0.0941, allocations: 71.55 kB / 378.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003826/0.09449, allocations: 219.5 kB / 378.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.0945, allocations: 0 / 378.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.09451, allocations: 4 kB / 378.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.09453, allocations: 0 / 378.6 MB, free: 1.059 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.001042/0.09558, allocations: 0.5273 MB / 379.2 MB, free: 488 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.09563, allocations: 8.031 kB / 379.2 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.834e-05/0.09568, allocations: 38.75 kB / 379.2 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.171e-05/0.09576, allocations: 20.66 kB / 379.2 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.09611, allocations: 258.9 kB / 379.5 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.09614, allocations: 16.31 kB / 379.5 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.09617, allocations: 7.938 kB / 379.5 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1691/0.2653, allocations: 111.6 kB / 379.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.2653, allocations: 0.9375 kB / 379.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.2654, allocations: 2.266 kB / 379.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2654, allocations: 1.656 kB / 379.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002339/0.2656, allocations: 51.67 kB / 379.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006242/0.2662, allocations: 0.6026 MB / 380.3 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.2665, allocations: 122.2 kB / 380.4 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.237e-05/0.2666, allocations: 54.22 kB / 380.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.2666, allocations: 3.25 kB / 380.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002061/0.2668, allocations: 124.7 kB / 380.6 MB, free: 12.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.723e-06/0.2669, allocations: 0 / 380.6 MB, free: 12.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004387/0.2673, allocations: 170.1 kB / 380.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.2674, allocations: 139 kB / 380.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.2677, allocations: 287.3 kB / 381.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.2677, allocations: 30.33 kB / 381.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.147e-05/0.2677, allocations: 124.6 kB / 381.3 MB, free: 11.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/0.2678, allocations: 35.22 kB / 381.3 MB, free: 11.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.807e-05/0.2679, allocations: 34.72 kB / 381.4 MB, free: 11.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.01e-05/0.2679, allocations: 329.8 kB / 381.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.117e-05/0.268, allocations: 35.92 kB / 381.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.2681, allocations: 87.8 kB / 381.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.2683, allocations: 99.92 kB / 381.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2683, allocations: 0 / 381.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002496/0.2686, allocations: 138.6 kB / 382.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.2686, allocations: 5.5 kB / 382.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2686, allocations: 1.375 kB / 382.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.2686, allocations: 6.734 kB / 382.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.016e-05/0.2687, allocations: 14.25 kB / 382.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.2687, allocations: 6.25 kB / 382.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.2689, allocations: 18.5 kB / 382.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.2689, allocations: 7.219 kB / 382.1 MB, free: 11.45 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.0001061/0.269, allocations: 153.4 kB / 382.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.9e-05/0.269, allocations: 19.48 kB / 382.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.689e-05/0.2691, allocations: 24.34 kB / 382.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2691, allocations: 3.828 kB / 382.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.2691, allocations: 10.5 kB / 382.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.2691, allocations: 0.8438 kB / 382.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.2693, allocations: 245.4 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2693, allocations: 1.375 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.86e-05/0.2694, allocations: 5.25 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2694, allocations: 1.375 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.2694, allocations: 4.062 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2694, allocations: 5.281 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.2694, allocations: 7.875 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/0.2697, allocations: 171.5 kB / 382.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.2698, allocations: 96.78 kB / 382.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.2698, allocations: 6.984 kB / 382.9 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.878e-05/0.2699, allocations: 12.88 kB / 382.9 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.2e-05/0.27, allocations: 18.69 kB / 382.9 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.27, allocations: 5.453 kB / 382.9 MB, free: 10.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002608/0.2703, allocations: 215.1 kB / 383.1 MB, free: 10.83 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2703, allocations: 0.5938 kB / 383.1 MB, free: 10.83 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.2706, allocations: 39.02 kB / 383.1 MB, free: 10.83 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.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.001319/0.2719, allocations: 1.025 MB / 384.2 MB, free: 9.992 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003112/0.2723, allocations: 100.6 kB / 384.3 MB, free: 9.957 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.2723, allocations: 0 / 384.3 MB, free: 9.957 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.2724, allocations: 54.75 kB / 384.3 MB, free: 9.938 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.2728, allocations: 61.25 kB / 384.4 MB, free: 9.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.2751, allocations: 2.159 MB / 386.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000164/0.2753, allocations: 0.7304 MB / 387.3 MB, free: 7.664 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001/0.2754, allocations: 29.16 kB / 387.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.15e-05/0.2755, allocations: 56.31 kB / 387.3 MB, free: 7.613 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2755, allocations: 1.188 kB / 387.4 MB, free: 7.613 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02531/0.3008, allocations: 5.187 MB / 392.5 MB, free: 6.625 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.065/8.366, allocations: 6.156 kB / 392.5 MB, free: 6.621 MB / 318.1 MB (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 --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) 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) "" Variables in the reference:time,table.y Variables in the result:booleanExpression.y,const.k,const.y,pulse.period,pulse.startTime,pulse.width,pulse.y,sample.period,sample.startTime,sample.y,step.startTime,step.startValue,step.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.table[3],table.table[4],table.y,time