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.001244/0.001244, allocations: 113.4 kB / 17.73 MB, free: 5.355 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: 184.1 kB / 18.66 MB, free: 4.434 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.406/1.406, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001638/0.001638, allocations: 56.28 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09014/0.09178, allocations: 46.63 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003162/0.09497, allocations: 1.809 MB / 376.5 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.09654, allocations: 0.9602 MB / 377.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.72e-05/0.09663, allocations: 0 / 377.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006163/0.09727, allocations: 163.5 kB / 377.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002965/0.09758, allocations: 131.5 kB / 377.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00038/0.09797, allocations: 147.6 kB / 377.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002734/0.09825, allocations: 203.4 kB / 378 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.09836, allocations: 25.53 kB / 378.1 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.09849, allocations: 79.64 kB / 378.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.09862, allocations: 87.67 kB / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.09867, allocations: 16 kB / 378.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.0988, allocations: 55.95 kB / 378.3 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.78e-05/0.09889, allocations: 51.77 kB / 378.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.559e-05/0.09899, allocations: 79.55 kB / 378.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003028/0.0993, allocations: 215.1 kB / 378.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.09931, allocations: 0 / 378.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.09932, allocations: 0 / 378.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.09933, allocations: 0 / 378.6 MB, free: 1.07 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.0008454/0.1002, allocations: 0.5426 MB / 379.2 MB, free: 484 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.1002, allocations: 8.031 kB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.091e-05/0.1003, allocations: 34.75 kB / 379.2 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.937e-05/0.1003, allocations: 24.8 kB / 379.3 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.1007, allocations: 259 kB / 379.5 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.1007, allocations: 12.31 kB / 379.5 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.1007, allocations: 7.938 kB / 379.5 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1606/0.2613, allocations: 119.2 kB / 379.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2614, allocations: 0.8438 kB / 379.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.2614, allocations: 3 kB / 379.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.2614, allocations: 4.203 kB / 379.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002294/0.2617, allocations: 53.31 kB / 379.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006557/0.2623, allocations: 0.6009 MB / 380.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002545/0.2626, allocations: 124.3 kB / 380.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.688e-05/0.2627, allocations: 51.28 kB / 380.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.2627, allocations: 2.266 kB / 380.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.263, allocations: 125.8 kB / 380.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.074e-06/0.263, allocations: 0 / 380.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004529/0.2634, allocations: 171.8 kB / 380.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.2635, allocations: 132.1 kB / 380.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.2638, allocations: 290.6 kB / 381.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.2638, allocations: 31.8 kB / 381.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.512e-05/0.2639, allocations: 121.9 kB / 381.3 MB, free: 11.97 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.894e-05/0.2639, allocations: 37.94 kB / 381.4 MB, free: 11.96 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.692e-05/0.264, allocations: 35.78 kB / 381.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.672e-05/0.2641, allocations: 331.8 kB / 381.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.758e-05/0.2642, allocations: 35.28 kB / 381.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.2643, allocations: 89.61 kB / 381.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.2645, allocations: 92.75 kB / 381.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2645, allocations: 2.188 kB / 381.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002491/0.2647, allocations: 137 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.2648, allocations: 6.438 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.2648, allocations: 1.375 kB / 382.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.2648, allocations: 6.516 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.267e-05/0.2649, allocations: 17.77 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-06/0.2649, allocations: 6.297 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.265, allocations: 18.3 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.265, allocations: 10.34 kB / 382.1 MB, free: 11.48 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 9.76e-05/0.2651, allocations: 147.8 kB / 382.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.272e-05/0.2652, allocations: 21.48 kB / 382.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.221e-05/0.2652, allocations: 30.73 kB / 382.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2652, allocations: 2.75 kB / 382.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2653, allocations: 5.203 kB / 382.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2653, allocations: 5.953 kB / 382.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.2655, allocations: 237.3 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2655, allocations: 5.547 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.65e-05/0.2655, allocations: 8.203 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2655, allocations: 1.984 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.2655, allocations: 3.359 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.2655, allocations: 1.984 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.2655, allocations: 5.312 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.2659, allocations: 178.6 kB / 382.8 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.26e-05/0.2659, allocations: 102.1 kB / 382.9 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.353e-05/0.266, allocations: 6.5 kB / 382.9 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.88e-05/0.2661, allocations: 11.22 kB / 382.9 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/0.2661, allocations: 23.02 kB / 382.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.2662, allocations: 4.75 kB / 382.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002082/0.2664, allocations: 213.2 kB / 383.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2664, allocations: 0 / 383.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002518/0.2666, allocations: 34.47 kB / 383.2 MB, free: 10.85 MB / 318.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.001817/0.2685, allocations: 1.025 MB / 384.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003118/0.2688, allocations: 95 kB / 384.3 MB, free: 9.977 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2688, allocations: 1.094 kB / 384.3 MB, free: 9.977 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.2689, allocations: 47.12 kB / 384.3 MB, free: 9.965 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.2693, allocations: 71.45 kB / 384.4 MB, free: 9.93 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.2716, allocations: 2.158 MB / 386.6 MB, free: 8.379 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.2718, allocations: 0.7331 MB / 387.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.759e-05/0.2719, allocations: 26.3 kB / 387.3 MB, free: 7.668 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.052e-05/0.272, allocations: 56.34 kB / 387.4 MB, free: 7.629 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.272, allocations: 0 / 387.4 MB, free: 7.629 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02918/0.3012, allocations: 5.114 MB / 392.5 MB, free: 6.664 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.088/8.389, allocations: 17.59 kB / 392.5 MB, free: 6.652 MB / 318.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