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.001165/0.001165, allocations: 106.9 kB / 17.58 MB, free: 5.559 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.001342/0.001343, allocations: 192 kB / 18.51 MB, free: 4.641 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.212/1.212, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001229/0.001229, allocations: 55.92 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06703/0.06827, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002929/0.07123, allocations: 1.821 MB / 329.2 MB, free: 2.539 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.07261, allocations: 0.9488 MB / 330.1 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.364e-05/0.07272, allocations: 4 kB / 330.1 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005415/0.07328, allocations: 163.5 kB / 330.3 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002875/0.07358, allocations: 131.5 kB / 330.4 MB, free: 1.289 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003824/0.07397, allocations: 151.6 kB / 330.6 MB, free: 1.141 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000228/0.07421, allocations: 203.4 kB / 330.8 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.666e-05/0.07431, allocations: 25.55 kB / 330.8 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.07444, allocations: 87.62 kB / 330.9 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.07456, allocations: 83.67 kB / 331 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.0746, allocations: 12 kB / 331 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.07472, allocations: 51.97 kB / 331 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.193e-05/0.07479, allocations: 51.77 kB / 331.1 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.636e-05/0.07489, allocations: 75.55 kB / 331.2 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002546/0.07515, allocations: 215.6 kB / 331.4 MB, free: 360 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.07516, allocations: 0 / 331.4 MB, free: 360 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.07517, allocations: 4 kB / 331.4 MB, free: 356 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.07518, allocations: 4 kB / 331.4 MB, free: 352 kB / 270.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.0007399/0.07593, allocations: 0.5157 MB / 331.9 MB, free: 15.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.07597, allocations: 12.03 kB / 331.9 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.663e-05/0.07601, allocations: 42.67 kB / 331.9 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.969e-05/0.07606, allocations: 16.75 kB / 332 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.07633, allocations: 254.9 kB / 332.2 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.07636, allocations: 12.38 kB / 332.2 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.07638, allocations: 7.938 kB / 332.2 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.0766, allocations: 121.9 kB / 332.4 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.07662, allocations: 0 / 332.4 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.07663, allocations: 0 / 332.4 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.07664, allocations: 4 kB / 332.4 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.07679, allocations: 51.91 kB / 332.4 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005557/0.07736, allocations: 0.6103 MB / 333 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.0776, allocations: 123.9 kB / 333.1 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.776e-05/0.07771, allocations: 50.56 kB / 333.2 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.07774, allocations: 3.938 kB / 333.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.07795, allocations: 129.8 kB / 333.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.07796, allocations: 0 / 333.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.000409/0.07837, allocations: 169.8 kB / 333.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.07844, allocations: 132.5 kB / 333.6 MB, free: 13.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.0787, allocations: 293 kB / 333.9 MB, free: 13.53 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.07873, allocations: 29.7 kB / 333.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.093e-05/0.07881, allocations: 132.4 kB / 334.1 MB, free: 13.36 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.529e-05/0.07885, allocations: 23.66 kB / 334.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-05/0.0789, allocations: 33.7 kB / 334.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.05e-05/0.079, allocations: 334.8 kB / 334.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.544e-05/0.07909, allocations: 27.98 kB / 334.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.07922, allocations: 89.92 kB / 334.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.07939, allocations: 96.28 kB / 334.6 MB, free: 12.71 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.0794, allocations: 4.031 kB / 334.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002573/0.07967, allocations: 137.3 kB / 334.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.07969, allocations: 4 kB / 334.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.0797, allocations: 11.92 kB / 334.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.07972, allocations: 0 / 334.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.682e-05/0.0798, allocations: 12 kB / 334.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.07981, allocations: 0 / 334.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.07992, allocations: 23.92 kB / 334.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.07994, allocations: 12 kB / 334.9 MB, free: 12.51 MB / 286.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.0001245/0.08007, allocations: 153.3 kB / 335 MB, free: 12.35 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.488e-05/0.08012, allocations: 15.81 kB / 335 MB, free: 12.33 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.872e-05/0.08017, allocations: 29.64 kB / 335 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.08018, allocations: 4 kB / 335 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.08019, allocations: 0 / 335 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.0802, allocations: 3.938 kB / 335.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002082/0.08041, allocations: 249.7 kB / 335.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.08042, allocations: 4 kB / 335.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.63e-05/0.08046, allocations: 4 kB / 335.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.08047, allocations: 4 kB / 335.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.08048, allocations: 0 / 335.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.08049, allocations: 7.984 kB / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.08049, allocations: 0 / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002834/0.08078, allocations: 182.4 kB / 335.5 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.451e-05/0.08085, allocations: 88.92 kB / 335.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/0.08089, allocations: 8 kB / 335.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.602e-05/0.08099, allocations: 11.98 kB / 335.6 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.503e-05/0.08105, allocations: 23.89 kB / 335.6 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.08107, allocations: 7.938 kB / 335.6 MB, free: 11.62 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001895/0.08127, allocations: 220.4 kB / 335.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08127, allocations: 0 / 335.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002482/0.08153, allocations: 36 kB / 335.9 MB, free: 11.38 MB / 286.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.001279/0.08281, allocations: 1.023 MB / 336.9 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002589/0.08309, allocations: 99.83 kB / 337 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.0831, allocations: 0 / 337 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.08323, allocations: 55.86 kB / 337.1 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.08355, allocations: 48.28 kB / 337.1 MB, free: 10.13 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.08574, allocations: 2.165 MB / 339.3 MB, free: 7.844 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.086, allocations: 0.7357 MB / 340 MB, free: 7.082 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.368e-05/0.08609, allocations: 29.53 kB / 340 MB, free: 7.055 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.865e-05/0.08619, allocations: 51.42 kB / 340.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.0862, allocations: 4 kB / 340.1 MB, free: 7 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.564/0.6502, allocations: 5.014 MB / 345.1 MB, free: 1.926 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.988/10.64, allocations: 19.94 kB / 345.1 MB, free: 1.906 MB / 286.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) Reference file matches