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.001398/0.001398, allocations: 105.5 kB / 17.72 MB, free: 5.215 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.001806/0.001806, allocations: 187.1 kB / 18.66 MB, free: 4.285 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.305/1.305, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001216/0.001216, allocations: 55.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07928/0.0805, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003025/0.08357, allocations: 1.82 MB / 376.4 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.08511, allocations: 0.9564 MB / 377.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.08527, allocations: 0 / 377.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006451/0.08594, allocations: 175.5 kB / 377.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003625/0.08632, allocations: 119.5 kB / 377.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004405/0.08677, allocations: 151.6 kB / 377.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.08707, allocations: 207.4 kB / 378 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.08719, allocations: 25.55 kB / 378.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.08736, allocations: 83.62 kB / 378.1 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.08752, allocations: 87.67 kB / 378.2 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.08756, allocations: 19.92 kB / 378.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.08771, allocations: 47.92 kB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.874e-05/0.08779, allocations: 47.83 kB / 378.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.55e-05/0.08788, allocations: 83.52 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003038/0.08819, allocations: 215.5 kB / 378.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.0882, allocations: 0 / 378.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.08821, allocations: 3.938 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.08822, allocations: 0 / 378.6 MB, free: 1.055 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.0008261/0.08905, allocations: 0.5274 MB / 379.2 MB, free: 484 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.0891, allocations: 8.031 kB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.759e-05/0.08914, allocations: 34.75 kB / 379.2 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.544e-05/0.0892, allocations: 24.66 kB / 379.2 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.08951, allocations: 258.9 kB / 379.5 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.08954, allocations: 4.375 kB / 379.5 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.08956, allocations: 11.88 kB / 379.5 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1494/0.239, allocations: 121.2 kB / 379.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.2391, allocations: 0 / 379.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.2391, allocations: 3.406 kB / 379.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2391, allocations: 2.25 kB / 379.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.2393, allocations: 50.11 kB / 379.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005704/0.2399, allocations: 0.6037 MB / 380.3 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.2401, allocations: 126 kB / 380.4 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.885e-05/0.2402, allocations: 49.62 kB / 380.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.2402, allocations: 4.344 kB / 380.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002027/0.2404, allocations: 127.5 kB / 380.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.613e-06/0.2405, allocations: 0 / 380.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004069/0.2409, allocations: 168.5 kB / 380.7 MB, free: 12.35 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.2409, allocations: 134.2 kB / 380.9 MB, free: 12.19 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.2412, allocations: 295 kB / 381.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.2412, allocations: 30.73 kB / 381.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.888e-05/0.2413, allocations: 121.7 kB / 381.3 MB, free: 11.97 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.142e-05/0.2413, allocations: 34.27 kB / 381.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.416e-05/0.2414, allocations: 30.61 kB / 381.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.411e-05/0.2414, allocations: 333.3 kB / 381.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.361e-05/0.2415, allocations: 31.55 kB / 381.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.999e-05/0.2416, allocations: 89.45 kB / 381.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.2418, allocations: 97.19 kB / 381.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2418, allocations: 0 / 381.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000252/0.2421, allocations: 140.5 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.2421, allocations: 5.5 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.2421, allocations: 1.375 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.2421, allocations: 6.25 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.564e-05/0.2422, allocations: 16.38 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.2422, allocations: 6.781 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.2423, allocations: 22.72 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.2423, allocations: 4.781 kB / 382.1 MB, free: 11.48 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.0001006/0.2425, allocations: 147.9 kB / 382.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.163e-05/0.2425, allocations: 21.42 kB / 382.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.431e-05/0.2426, allocations: 27.06 kB / 382.3 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2426, allocations: 2.75 kB / 382.3 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2426, allocations: 6.562 kB / 382.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2426, allocations: 2.078 kB / 382.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.2428, allocations: 245.3 kB / 382.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2428, allocations: 2.797 kB / 382.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.759e-05/0.2428, allocations: 6.109 kB / 382.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.2428, allocations: 1.984 kB / 382.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.2428, allocations: 8.797 kB / 382.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.2429, allocations: 5.922 kB / 382.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2429, allocations: 6.391 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002738/0.2431, allocations: 169.7 kB / 382.8 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.16e-05/0.2432, allocations: 95.53 kB / 382.8 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.187e-05/0.2432, allocations: 10.11 kB / 382.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.764e-05/0.2433, allocations: 9.844 kB / 382.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.62e-05/0.2434, allocations: 20.08 kB / 382.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/0.2434, allocations: 8.016 kB / 382.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000201/0.2436, allocations: 209.6 kB / 383.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2436, allocations: 0 / 383.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003107/0.244, allocations: 35.61 kB / 383.1 MB, free: 10.87 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.001267/0.2452, allocations: 1.031 MB / 384.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003033/0.2456, allocations: 100.2 kB / 384.3 MB, free: 9.973 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2456, allocations: 0 / 384.3 MB, free: 9.973 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.2457, allocations: 51.81 kB / 384.3 MB, free: 9.957 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.2461, allocations: 59.22 kB / 384.4 MB, free: 9.934 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.2481, allocations: 2.162 MB / 386.5 MB, free: 8.387 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001787/0.2483, allocations: 0.7289 MB / 387.3 MB, free: 7.688 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.484e-05/0.2484, allocations: 29.06 kB / 387.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.373e-05/0.2485, allocations: 57.09 kB / 387.3 MB, free: 7.637 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2485, allocations: 1.312 kB / 387.3 MB, free: 7.637 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02163/0.2702, allocations: 5.185 MB / 392.5 MB, free: 6.648 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/8.081, allocations: 13.73 kB / 392.5 MB, free: 6.637 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