Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_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.001508/0.001508, allocations: 106.7 kB / 16.92 MB, free: 6.145 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.001662/0.001662, allocations: 191.5 kB / 17.85 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009697/0.0009697, allocations: 47.09 kB / 300.7 MB, free: 5.727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07503/0.07601, allocations: 49.45 MB / 350.2 MB, free: 4.273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00298/0.07903, allocations: 1.818 MB / 352 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.08058, allocations: 1.029 MB / 353 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.0807, allocations: 3.938 kB / 353 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005623/0.08127, allocations: 178.9 kB / 353.2 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002884/0.08157, allocations: 119.5 kB / 353.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004234/0.082, allocations: 174.5 kB / 353.5 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002272/0.08224, allocations: 211.4 kB / 353.7 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.444e-05/0.08234, allocations: 17.56 kB / 353.7 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.08247, allocations: 87.62 kB / 353.8 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.08262, allocations: 83.67 kB / 353.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.035e-05/0.08265, allocations: 12 kB / 353.9 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.0828, allocations: 59.91 kB / 353.9 MB, free: 488 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.393e-05/0.08287, allocations: 43.83 kB / 354 MB, free: 444 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.417e-05/0.08296, allocations: 83.53 kB / 354.1 MB, free: 360 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.08323, allocations: 207.6 kB / 354.3 MB, free: 152 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.08324, allocations: 7.938 kB / 354.3 MB, free: 144 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.08325, allocations: 0 / 354.3 MB, free: 144 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.08326, allocations: 4 kB / 354.3 MB, free: 140 kB / 286.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.0007582/0.08402, allocations: 0.5197 MB / 354.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.08406, allocations: 12.03 kB / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.882e-05/0.08411, allocations: 38.73 kB / 354.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.085e-05/0.08417, allocations: 20.75 kB / 354.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.08444, allocations: 258.6 kB / 355.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.08446, allocations: 4 kB / 355.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.08449, allocations: 11.98 kB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002109/0.08471, allocations: 113.9 kB / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.08472, allocations: 0 / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.08474, allocations: 0 / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.08475, allocations: 4 kB / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001419/0.0849, allocations: 47.91 kB / 355.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.08549, allocations: 0.6143 MB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000247/0.08575, allocations: 123.9 kB / 356 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.948e-05/0.08586, allocations: 54.5 kB / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.08589, allocations: 3.984 kB / 356.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000206/0.08611, allocations: 125.9 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.382e-06/0.08612, allocations: 0 / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.000437/0.08656, allocations: 169.4 kB / 356.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.364e-05/0.08664, allocations: 136.5 kB / 356.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002627/0.08691, allocations: 293 kB / 356.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.08694, allocations: 37.64 kB / 356.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.153e-05/0.08701, allocations: 120.4 kB / 356.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.49e-05/0.08705, allocations: 23.66 kB / 357 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.08711, allocations: 37.7 kB / 357 MB, free: 13.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.46e-05/0.08721, allocations: 330.8 kB / 357.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.339e-05/0.08731, allocations: 31.92 kB / 357.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001139/0.08744, allocations: 89.98 kB / 357.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.08761, allocations: 96.72 kB / 357.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.08763, allocations: 0 / 357.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002644/0.0879, allocations: 145.3 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.08792, allocations: 4 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.08793, allocations: 4 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.08795, allocations: 0 / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.254e-05/0.08803, allocations: 15.94 kB / 357.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.08805, allocations: 4 kB / 357.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.08816, allocations: 19.89 kB / 357.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.08818, allocations: 4.094 kB / 357.7 MB, free: 12.31 MB / 302.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.000115/0.0883, allocations: 157.6 kB / 357.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.753e-05/0.08835, allocations: 19.81 kB / 357.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.43e-05/0.08841, allocations: 25.7 kB / 357.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.08842, allocations: 3.938 kB / 357.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.08843, allocations: 3.938 kB / 357.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.08844, allocations: 4 kB / 357.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.08864, allocations: 237.5 kB / 358.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.08865, allocations: 0 / 358.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.989e-05/0.08868, allocations: 12 kB / 358.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.08869, allocations: 0 / 358.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.08871, allocations: 3.984 kB / 358.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.08872, allocations: 7.938 kB / 358.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.08873, allocations: 3.938 kB / 358.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.08901, allocations: 174.7 kB / 358.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.238e-05/0.08908, allocations: 100.9 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/0.08912, allocations: 3.984 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.08923, allocations: 19.92 kB / 358.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.08928, allocations: 7.984 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.08931, allocations: 8 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001856/0.0895, allocations: 212.5 kB / 358.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.0895, allocations: 3.938 kB / 358.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.08978, allocations: 36 kB / 358.8 MB, free: 11.18 MB / 302.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.00133/0.09111, allocations: 1.027 MB / 359.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002657/0.09139, allocations: 103.8 kB / 359.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.09141, allocations: 0 / 359.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.09154, allocations: 51.92 kB / 359.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.09189, allocations: 59.09 kB / 360 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.09416, allocations: 2.165 MB / 362.2 MB, free: 7.785 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.0944, allocations: 0.728 MB / 362.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.656e-05/0.09449, allocations: 29.53 kB / 362.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.09461, allocations: 59.41 kB / 363 MB, free: 6.945 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.09462, allocations: 0 / 363 MB, free: 6.945 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.288/1.383, allocations: 4.998 MB / 368 MB, free: 2.039 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/12.84, allocations: 15.25 kB / 368 MB, free: 2.027 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches