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.001277/0.001277, allocations: 112 kB / 17.06 MB, free: 5.988 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.001312/0.001312, allocations: 195.9 kB / 18 MB, free: 5.074 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.413/1.413, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 47.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2471, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003326/0.2505, allocations: 1.831 MB / 402.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.2523, allocations: 1.029 MB / 403.1 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.124e-05/0.2524, allocations: 3.938 kB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006003/0.253, allocations: 169.5 kB / 403.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003053/0.2533, allocations: 127.5 kB / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004441/0.2537, allocations: 169.9 kB / 403.5 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000282/0.254, allocations: 211.4 kB / 403.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.2541, allocations: 21.56 kB / 403.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001408/0.2543, allocations: 87.61 kB / 403.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.2544, allocations: 83.69 kB / 403.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.063e-05/0.2545, allocations: 8 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001496/0.2546, allocations: 55.91 kB / 404 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.259e-05/0.2547, allocations: 47.83 kB / 404 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.2549, allocations: 79.53 kB / 404.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.2553, allocations: 222.2 kB / 404.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2553, allocations: 0 / 404.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2553, allocations: 0 / 404.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2553, allocations: 4 kB / 404.3 MB, free: 4.691 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.001001/0.2563, allocations: 0.5233 MB / 404.9 MB, free: 4.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.2564, allocations: 12.03 kB / 404.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.917e-05/0.2564, allocations: 34.75 kB / 404.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.32e-05/0.2565, allocations: 24.8 kB / 404.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/0.2568, allocations: 262.6 kB / 405.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.2568, allocations: 4 kB / 405.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.178e-05/0.2569, allocations: 11.94 kB / 405.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002413/0.2571, allocations: 117.9 kB / 405.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2571, allocations: 0 / 405.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.2572, allocations: 7.938 kB / 405.3 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.2572, allocations: 3.938 kB / 405.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.2573, allocations: 47.91 kB / 405.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006813/0.258, allocations: 0.6105 MB / 406 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/0.2583, allocations: 123.9 kB / 406.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.2584, allocations: 54.56 kB / 406.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.2585, allocations: 4 kB / 406.2 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002359/0.2587, allocations: 121.9 kB / 406.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.503e-06/0.2587, allocations: 0 / 406.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.000475/0.2592, allocations: 181.6 kB / 406.5 MB, free: 2.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.409e-05/0.2593, allocations: 136.5 kB / 406.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.2596, allocations: 285.1 kB / 406.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.2597, allocations: 37.7 kB / 406.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.2598, allocations: 124.3 kB / 407 MB, free: 1.688 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.753e-05/0.2598, allocations: 27.86 kB / 407.1 MB, free: 1.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.447e-05/0.2599, allocations: 37.7 kB / 407.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.2601, allocations: 330.8 kB / 407.4 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.889e-05/0.2602, allocations: 31.98 kB / 407.5 MB, free: 1.254 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.2603, allocations: 82 kB / 407.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.2605, allocations: 96.2 kB / 407.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2605, allocations: 0 / 407.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002909/0.2608, allocations: 141.4 kB / 407.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.2609, allocations: 8 kB / 407.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.2609, allocations: 0 / 407.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.2609, allocations: 3.938 kB / 407.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.65e-05/0.261, allocations: 15.98 kB / 407.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.261, allocations: 7.938 kB / 407.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.2611, allocations: 23.88 kB / 407.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.2611, allocations: 7.938 kB / 407.8 MB, free: 0.832 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.000183/0.2613, allocations: 150.2 kB / 408 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.171e-05/0.2614, allocations: 27.86 kB / 408 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.475e-05/0.2614, allocations: 25.7 kB / 408 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.2614, allocations: 3.938 kB / 408 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2615, allocations: 4 kB / 408 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2615, allocations: 0 / 408 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002936/0.2618, allocations: 237.5 kB / 408.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.2618, allocations: 4 kB / 408.3 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.944e-05/0.2618, allocations: 7.938 kB / 408.3 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2618, allocations: 4 kB / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.2618, allocations: 4 kB / 408.3 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.2618, allocations: 3.938 kB / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2618, allocations: 3.984 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003398/0.2622, allocations: 174.6 kB / 408.5 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.2623, allocations: 105 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.2624, allocations: 3.938 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.2625, allocations: 19.92 kB / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.887e-05/0.2625, allocations: 15.91 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.2626, allocations: 15.98 kB / 408.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002742/0.2628, allocations: 208.5 kB / 408.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2629, allocations: 0 / 408.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002653/0.2631, allocations: 35.94 kB / 408.9 MB, free: 15.69 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.001988/0.2651, allocations: 1.033 MB / 409.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000283/0.2654, allocations: 91.91 kB / 410 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2654, allocations: 0 / 410 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.2656, allocations: 55.91 kB / 410 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.266, allocations: 48.8 kB / 410.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002795/0.2688, allocations: 2.163 MB / 412.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.2692, allocations: 0.7357 MB / 413 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.83e-05/0.2693, allocations: 29.52 kB / 413 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.833e-05/0.2694, allocations: 55.42 kB / 413.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of SimCode: time 2.204e-06/0.2694, allocations: 0 / 413.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02613/0.2955, allocations: 5.117 MB / 418.2 MB, free: 6.473 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.099/8.394, allocations: 4.406 kB / 418.2 MB, free: 6.469 MB / 334.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