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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001334, allocations: 118.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0015/0.0015, allocations: 202 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2573, allocations: 50.56 MB / 408.8 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003329/0.2607, allocations: 1.858 MB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.2627, allocations: 1.169 MB / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.2628, allocations: 0 / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006459/0.2635, allocations: 171.5 kB / 412 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004139/0.2639, allocations: 163.3 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003935/0.2643, allocations: 139.6 kB / 412.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003656/0.2647, allocations: 231.3 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.86e-05/0.2648, allocations: 13.56 kB / 412.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.265, allocations: 87.67 kB / 412.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.2651, allocations: 91.56 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.2652, allocations: 8 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.2653, allocations: 55.95 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.039e-05/0.2654, allocations: 47.84 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.2655, allocations: 87.45 kB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.2659, allocations: 222.2 kB / 413.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2659, allocations: 4 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2659, allocations: 0 / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2659, allocations: 4 kB / 413.1 MB, free: 13.09 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.0009219/0.2668, allocations: 0.5311 MB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2669, allocations: 8.031 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.613e-05/0.2669, allocations: 38.73 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.267, allocations: 28.73 kB / 413.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.2674, allocations: 274.9 kB / 414 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.2674, allocations: 384 / 414 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/0.2674, allocations: 11.94 kB / 414 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.2677, allocations: 117.4 kB / 414.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.2677, allocations: 0 / 414.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.2677, allocations: 3.984 kB / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.2677, allocations: 8 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/0.2679, allocations: 47.91 kB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007627/0.2686, allocations: 0.6027 MB / 414.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.269, allocations: 135.8 kB / 414.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.2691, allocations: 46.56 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.2691, allocations: 0 / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.2694, allocations: 121.9 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.2694, allocations: 3.938 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004911/0.2699, allocations: 173.4 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.27, allocations: 144.6 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/0.2704, allocations: 292.9 kB / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.2704, allocations: 29.7 kB / 415.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.2705, allocations: 128.3 kB / 415.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.841e-05/0.2706, allocations: 31.81 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.779e-05/0.2706, allocations: 33.7 kB / 415.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.2708, allocations: 338.8 kB / 416.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.432e-05/0.2709, allocations: 27.98 kB / 416.3 MB, free: 9.641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.2711, allocations: 85.92 kB / 416.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.2713, allocations: 100.2 kB / 416.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2713, allocations: 0 / 416.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002945/0.2716, allocations: 137.5 kB / 416.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.2716, allocations: 11.98 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2716, allocations: 0 / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.2716, allocations: 4 kB / 416.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.477e-05/0.2717, allocations: 11.94 kB / 416.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.2717, allocations: 4.625 kB / 416.6 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.2719, allocations: 27.95 kB / 416.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.2719, allocations: 4 kB / 416.7 MB, free: 9.219 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: 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.0001597/0.2721, allocations: 149.8 kB / 416.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.145e-05/0.2721, allocations: 23.86 kB / 416.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.898e-05/0.2722, allocations: 25.7 kB / 416.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.2722, allocations: 4 kB / 416.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.2722, allocations: 0 / 416.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.2722, allocations: 3.938 kB / 416.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002638/0.2725, allocations: 245.5 kB / 417.1 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2725, allocations: 4 kB / 417.1 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.193e-05/0.2725, allocations: 7.984 kB / 417.1 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.2725, allocations: 4 kB / 417.1 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.2725, allocations: 4 kB / 417.1 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.2726, allocations: 4 kB / 417.1 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2726, allocations: 0 / 417.1 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003508/0.2729, allocations: 186.4 kB / 417.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.782e-05/0.273, allocations: 104.9 kB / 417.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.2731, allocations: 0 / 417.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.2732, allocations: 19.92 kB / 417.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.864e-05/0.2732, allocations: 15.92 kB / 417.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.2733, allocations: 4 kB / 417.4 MB, free: 8.324 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002414/0.2735, allocations: 216.5 kB / 417.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2735, allocations: 0 / 417.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002688/0.2738, allocations: 39.98 kB / 417.7 MB, free: 8.074 MB / 334.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.00207/0.2759, allocations: 1.02 MB / 418.7 MB, free: 7.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003208/0.2762, allocations: 87.91 kB / 418.8 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2762, allocations: 0 / 418.8 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.2764, allocations: 51.92 kB / 418.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004202/0.2768, allocations: 63.23 kB / 418.9 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/0.2798, allocations: 2.194 MB / 421.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.2802, allocations: 0.7319 MB / 421.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000109/0.2804, allocations: 29.55 kB / 421.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.2805, allocations: 63.41 kB / 421.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of SimCode: time 6.92e-07/0.2805, allocations: 0 / 421.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02741/0.3079, allocations: 5.195 MB / 427.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.719/9.027, allocations: 0.8906 kB / 427.1 MB, free: 14.7 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) 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) Reference file matches