Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 200.5 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.5 MB / 244.7 MB, free: 6.535 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000729/0.000729, allocations: 98.84 kB / 296.7 MB, free: 6.719 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002291/0.0002292, allocations: 4 kB / 356.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.21, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001561/0.2116, allocations: 1.524 MB / 409.7 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.2128, allocations: 1.095 MB / 410.7 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.517e-05/0.2129, allocations: 1.75 kB / 410.7 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004957/0.2134, allocations: 155.6 kB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002833/0.2137, allocations: 141.5 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003865/0.2141, allocations: 143.8 kB / 411.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002067/0.2143, allocations: 195.3 kB / 411.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.2144, allocations: 17.55 kB / 411.4 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.2145, allocations: 75.64 kB / 411.5 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.737e-05/0.2146, allocations: 80.86 kB / 411.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.2147, allocations: 8 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.2148, allocations: 47.95 kB / 411.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.533e-05/0.2148, allocations: 41.09 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.123e-05/0.2149, allocations: 93.23 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001723/0.2151, allocations: 160.9 kB / 411.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2151, allocations: 11.78 kB / 411.9 MB, free: 23.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2151, allocations: 0 / 411.9 MB, free: 23.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.936e-06/0.2151, allocations: 4 kB / 411.9 MB, free: 23.92 MB / 298.7 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.0006596/0.2158, allocations: 0.5002 MB / 412.4 MB, free: 23.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2158, allocations: 12.03 kB / 412.4 MB, free: 23.35 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.485e-05/0.2159, allocations: 35.38 kB / 412.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.928e-05/0.2159, allocations: 20.75 kB / 412.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002428/0.2162, allocations: 267.7 kB / 412.7 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.2162, allocations: 8.375 kB / 412.7 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.2162, allocations: 11.94 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001876/0.2164, allocations: 121.9 kB / 412.9 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.2164, allocations: 0 / 412.9 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.2164, allocations: 4 kB / 412.9 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.2165, allocations: 0 / 412.9 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.2166, allocations: 55.91 kB / 412.9 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004547/0.2171, allocations: 0.6067 MB / 413.5 MB, free: 22.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.2173, allocations: 119.9 kB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.358e-05/0.2174, allocations: 50.56 kB / 413.7 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.2174, allocations: 7.984 kB / 413.7 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001796/0.2176, allocations: 129.8 kB / 413.8 MB, free: 21.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.2176, allocations: 0 / 413.8 MB, free: 21.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003702/0.218, allocations: 173.5 kB / 414 MB, free: 21.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.218, allocations: 136.5 kB / 414.1 MB, free: 21.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.2183, allocations: 304.8 kB / 414.4 MB, free: 21.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.2183, allocations: 29.7 kB / 414.5 MB, free: 21.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.905e-05/0.2184, allocations: 124.4 kB / 414.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.2184, allocations: 27.64 kB / 414.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.2184, allocations: 0 / 414.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.818e-05/0.2185, allocations: 334.8 kB / 414.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.871e-05/0.2186, allocations: 36 kB / 415 MB, free: 20.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.272e-05/0.2187, allocations: 81.94 kB / 415.1 MB, free: 20.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.2188, allocations: 100.2 kB / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2188, allocations: 0 / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002152/0.219, allocations: 141.8 kB / 415.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2191, allocations: 8 kB / 415.3 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2191, allocations: 0 / 415.3 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.2191, allocations: 8.094 kB / 415.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.977e-05/0.2192, allocations: 19.92 kB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.2192, allocations: 64 / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.2193, allocations: 27.92 kB / 415.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.2193, allocations: 4 kB / 415.4 MB, free: 20.11 MB / 298.7 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 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.227e-05/0.2194, allocations: 141.8 kB / 415.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.578e-05/0.2194, allocations: 31.66 kB / 415.5 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.554e-05/0.2195, allocations: 29.7 kB / 415.6 MB, free: 19.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.2195, allocations: 4 kB / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2195, allocations: 0 / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.2195, allocations: 3.938 kB / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.2197, allocations: 245.5 kB / 415.8 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2197, allocations: 0 / 415.8 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.539e-05/0.2197, allocations: 7.938 kB / 415.8 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2197, allocations: 4 kB / 415.8 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.2197, allocations: 7.984 kB / 415.8 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.2198, allocations: 4 kB / 415.8 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2198, allocations: 0 / 415.8 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/0.22, allocations: 184.4 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-05/0.22, allocations: 104.8 kB / 416.1 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.2201, allocations: 7.938 kB / 416.1 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.525e-05/0.2202, allocations: 19.98 kB / 416.1 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.2202, allocations: 15.92 kB / 416.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.2203, allocations: 8 kB / 416.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001459/0.2204, allocations: 216.4 kB / 416.4 MB, free: 19 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2204, allocations: 0 / 416.4 MB, free: 19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002328/0.2206, allocations: 32 kB / 416.4 MB, free: 18.96 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001157/0.2218, allocations: 1.02 MB / 417.4 MB, free: 18.06 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002211/0.222, allocations: 96.02 kB / 417.5 MB, free: 17.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2221, allocations: 0 / 417.5 MB, free: 17.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.2222, allocations: 51.92 kB / 417.6 MB, free: 17.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.2225, allocations: 60.16 kB / 417.6 MB, free: 17.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/0.2239, allocations: 1.192 MB / 418.8 MB, free: 16.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.2241, allocations: 0.7322 MB / 419.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.316e-05/0.2242, allocations: 59.41 kB / 419.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2242, allocations: 0 / 419.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.907/3.131, allocations: 3.435 MB / 423 MB, free: 12.33 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches