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.001039/0.001039, allocations: 92.33 kB / 17.3 MB, free: 6.07 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.001199/0.001199, allocations: 180.2 kB / 18.21 MB, free: 5.395 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.399/1.399, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.000427/0.0004274, allocations: 11.94 kB / 281.5 MB, free: 3.336 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0844/0.08484, allocations: 47.58 MB / 329 MB, free: 3.676 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001965/0.08684, allocations: 1.532 MB / 330.6 MB, free: 2.129 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.08831, allocations: 0.9132 MB / 331.5 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.899e-05/0.08841, allocations: 4 kB / 331.5 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005303/0.08894, allocations: 159.6 kB / 331.7 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002448/0.0892, allocations: 119.6 kB / 331.8 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003488/0.08956, allocations: 131.8 kB / 331.9 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002148/0.08978, allocations: 207.4 kB / 332.1 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.695e-05/0.08988, allocations: 17.55 kB / 332.1 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.08999, allocations: 79.61 kB / 332.2 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.09015, allocations: 75.69 kB / 332.3 MB, free: 440 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.102e-05/0.09018, allocations: 4 kB / 332.3 MB, free: 436 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.0903, allocations: 55.91 kB / 332.3 MB, free: 380 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.034e-05/0.09037, allocations: 39.84 kB / 332.4 MB, free: 340 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.226e-05/0.09046, allocations: 101.2 kB / 332.5 MB, free: 232 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002287/0.09069, allocations: 195.6 kB / 332.7 MB, free: 36 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.09071, allocations: 3.938 kB / 332.7 MB, free: 32 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.09071, allocations: 0 / 332.7 MB, free: 32 kB / 270.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.09073, allocations: 3.938 kB / 332.7 MB, free: 28 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.0007448/0.09148, allocations: 0.5002 MB / 333.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.09152, allocations: 8.031 kB / 333.2 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.584e-05/0.09157, allocations: 42.73 kB / 333.2 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.028e-05/0.09162, allocations: 16.75 kB / 333.2 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002679/0.09189, allocations: 250.9 kB / 333.5 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.09192, allocations: 8.375 kB / 333.5 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.824e-05/0.09194, allocations: 11.92 kB / 333.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002158/0.09216, allocations: 125.9 kB / 333.6 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.09218, allocations: 0 / 333.6 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.0922, allocations: 0 / 333.6 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.09221, allocations: 0 / 333.6 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.09235, allocations: 51.91 kB / 333.7 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005835/0.09294, allocations: 0.6221 MB / 334.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.09319, allocations: 123.9 kB / 334.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.79e-05/0.0933, allocations: 58.44 kB / 334.5 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.09333, allocations: 3.984 kB / 334.5 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.09354, allocations: 121.9 kB / 334.6 MB, free: 13.85 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.09355, allocations: 0 / 334.6 MB, free: 13.85 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004117/0.09396, allocations: 177.3 kB / 334.8 MB, free: 13.67 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.792e-05/0.09404, allocations: 132.6 kB / 334.9 MB, free: 13.51 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.09432, allocations: 296.9 kB / 335.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.09436, allocations: 29.7 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.09444, allocations: 124.4 kB / 335.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.913e-05/0.09447, allocations: 23.73 kB / 335.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.09451, allocations: 21.7 kB / 335.4 MB, free: 13 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.09463, allocations: 338.8 kB / 335.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.534e-05/0.09472, allocations: 27.98 kB / 335.7 MB, free: 12.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.09484, allocations: 81.98 kB / 335.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.09503, allocations: 104.2 kB / 335.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.09504, allocations: 0 / 335.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002743/0.09532, allocations: 145.3 kB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.09535, allocations: 6.656 kB / 336.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.09536, allocations: 0.625 kB / 336.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.09538, allocations: 4 kB / 336.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.09549, allocations: 15.98 kB / 336.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.0955, allocations: 3.984 kB / 336.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.09562, allocations: 35.86 kB / 336.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.09564, allocations: 8 kB / 336.1 MB, free: 12.2 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.0001215/0.09577, allocations: 153.4 kB / 336.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.09581, allocations: 15.81 kB / 336.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.225e-05/0.09586, allocations: 25.7 kB / 336.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.09588, allocations: 4 kB / 336.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.09589, allocations: 7.938 kB / 336.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.0959, allocations: 7.922 kB / 336.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.0961, allocations: 245.5 kB / 336.6 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.09611, allocations: 0 / 336.6 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.805e-05/0.09615, allocations: 7.938 kB / 336.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.09616, allocations: 0 / 336.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.09617, allocations: 4 kB / 336.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.09618, allocations: 3.984 kB / 336.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.09619, allocations: 4 kB / 336.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.09647, allocations: 174.6 kB / 336.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.925e-05/0.09654, allocations: 100.8 kB / 336.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.107e-05/0.09658, allocations: 3.984 kB / 336.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.09669, allocations: 19.98 kB / 336.9 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.904e-05/0.09676, allocations: 19.86 kB / 336.9 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.09678, allocations: 7.938 kB / 336.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001925/0.09698, allocations: 216.5 kB / 337.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09698, allocations: 3.938 kB / 337.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002542/0.09724, allocations: 32 kB / 337.2 MB, free: 11.06 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.001402/0.09865, allocations: 1.021 MB / 338.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002651/0.09893, allocations: 95.89 kB / 338.3 MB, free: 9.922 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.09895, allocations: 3.938 kB / 338.3 MB, free: 9.918 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.09908, allocations: 56.11 kB / 338.3 MB, free: 9.863 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003945/0.09949, allocations: 40.34 kB / 338.4 MB, free: 9.824 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.1022, allocations: 2.207 MB / 340.6 MB, free: 7.5 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.1026, allocations: 0.7322 MB / 341.3 MB, free: 6.742 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.1027, allocations: 21.55 kB / 341.3 MB, free: 6.723 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.1028, allocations: 59.42 kB / 341.4 MB, free: 6.664 MB / 286.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1028, allocations: 0 / 341.4 MB, free: 6.664 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01598/0.1188, allocations: 4.519 MB / 345.9 MB, free: 2.129 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002092/0.1191, allocations: 243.6 kB / 346.2 MB, free: 1.863 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/1.935, allocations: 0 / 346.2 MB, free: 1.863 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches